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,6 +1,8 @@
#include "../core.h"
#if (defined(__x86_64) || defined(__amd64__)) && MM!=0
#include "../vm.h"
#if JIT_START!=-1
#include "nvm_x86_64.c"
#else
#include "nvm_placeholder.c"
#endif
#endif

View File

@ -1,7 +1,7 @@
#pragma once
#if (defined(__x86_64) || defined(__amd64__)) && MM!=0
#if (defined(__x86_64) || defined(__amd64__)) && defined(MAP_32BIT) && MM!=0
#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
#endif