test for MAP_32BIT to enable JIT

This commit is contained in:
dzaima 2021-07-06 20:04:14 +03:00
parent aef9702b7b
commit fc4d36de07
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#include "../core.h" #include "../core.h"
#if (defined(__x86_64) || defined(__amd64__)) && MM!=0 #include "../vm.h"
#if JIT_START!=-1
#include "nvm_x86_64.c" #include "nvm_x86_64.c"
#else #else
#include "nvm_placeholder.c" #include "nvm_placeholder.c"

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#if (defined(__x86_64) || defined(__amd64__)) && MM!=0 #if (defined(__x86_64) || defined(__amd64__)) && defined(MAP_32BIT) && MM!=0
#ifndef JIT_START #ifndef JIT_START
#define JIT_START 2 // number of calls for when to start JITting. -1: never JIT; 0: JIT everything, n: JIT after n non-JIT invocations; max ¯1+2⋆16 #define JIT_START 2 // number of calls for when to start JITting. -1: never JIT; 0: JIT everything, n: JIT after n non-JIT invocations; max ¯1+2⋆16
#endif #endif