opam-2.0.0
Vova 3 years ago
parent 4ad14cc65d
commit 420e884e26

@ -19,6 +19,10 @@
#include "uvwasi.h"
#ifndef d_m3EnableWasiTracing
# define d_m3EnableWasiTracing 0
#endif
#ifdef __APPLE__
# include <crt_externs.h>
# define environ (*_NSGetEnviron())

@ -641,6 +641,8 @@ _ (PushAllocatedSlotAndEmit (o, i_type));
{
u16 constTableIndex = slot - o->slotFirstConstIndex;
d_m3Assert(constTableIndex < d_m3MaxConstantTableSize);
if (is64BitType)
{
u64 * constant = (u64 *) & o->constants [constTableIndex];

@ -33,7 +33,7 @@
# endif
# ifndef d_m3MaxConstantTableSize
# define d_m3MaxConstantTableSize 120
# define d_m3MaxConstantTableSize 1024
# endif
# ifndef d_m3MaxDuplicateFunctionImpl

@ -65,10 +65,13 @@
# if defined(M3_COMPILER_MSVC)
# define M3_WEAK //__declspec(selectany)
# define M3_NO_UBSAN
# elif defined(__MINGW32__)
# define M3_WEAK //__attribute__((selectany))
# define M3_NO_UBSAN
# else
# define M3_WEAK __attribute__((weak))
# define M3_WEAK __attribute__((weak))
# define M3_NO_UBSAN __attribute__((no_sanitize("undefined")))
# endif
# ifndef M3_MIN
@ -163,6 +166,9 @@ typedef int8_t i8;
# ifndef d_m3VerboseErrorMessages
# define d_m3VerboseErrorMessages 0
# endif
# ifndef d_m3MaxConstantTableSize
# define d_m3MaxConstantTableSize 64
# endif
# ifndef d_m3MaxFunctionStackHeight
# define d_m3MaxFunctionStackHeight 64
# endif

@ -45,7 +45,7 @@ d_m3BeginExternC
typedef m3ret_t (vectorcall * IM3Operation) (d_m3OpSig);
#define d_m3RetSig static inline m3ret_t vectorcall
#define d_m3Op(NAME) op_section d_m3RetSig op_##NAME (d_m3OpSig)
#define d_m3Op(NAME) M3_NO_UBSAN op_section d_m3RetSig op_##NAME (d_m3OpSig)
#define nextOpImpl() ((IM3Operation)(* _pc))(_pc + 1, d_m3OpArgs)
#define jumpOpImpl(PC) ((IM3Operation)(* PC))( PC + 1, d_m3OpArgs)

Loading…
Cancel
Save