summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-12-13 16:08:01 -0800
committerGitHub <noreply@github.com>2021-12-13 16:08:01 -0800
commit11b8aaa26a22bb67b144484af6890844771b5f46 (patch)
tree70b7047f412c7ee0c129dd53a634dc0f38c61cf3 /yjit.c
parent94494a565d7d3e1277e594db44478edc0233c3e8 (diff)
Rename --jit to --mjit (#5248)
* Rename --jit to --mjit [Feature #18349] * Fix a few more --jit references * Fix MJIT Actions * More s/jit/mjit/ and re-introduce --disable-jit * Update NEWS.md * Fix test_bug_reporter_add
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/yjit.c b/yjit.c
index 2f8ec039ea..e4fa84d510 100644
--- a/yjit.c
+++ b/yjit.c
@@ -20,17 +20,11 @@
# define YJIT_DUMP_MODE 0
#endif
-#if defined(__x86_64__) && !defined(_WIN32)
-# define PLATFORM_SUPPORTED_P 1
-#else
-# define PLATFORM_SUPPORTED_P 0
-#endif
-
// USE_MJIT comes from configure options
#define JIT_ENABLED USE_MJIT
// Check if we need to include YJIT in the build
-#if JIT_ENABLED && PLATFORM_SUPPORTED_P
+#if JIT_ENABLED && YJIT_SUPPORTED_P
#include "yjit_asm.c"
@@ -165,7 +159,7 @@ static uint32_t yjit_codepage_frozen_bytes = 0;
#include "yjit_codegen.c"
#else
-// !JIT_ENABLED || !PLATFORM_SUPPORTED_P
+// !JIT_ENABLED || !YJIT_SUPPORTED_P
// In these builds, YJIT could never be turned on. Provide dummy
// implementations for YJIT functions exposed to the rest of the code base.
// See yjit.h.
@@ -190,4 +184,4 @@ void rb_yjit_before_ractor_spawn(void) {}
void rb_yjit_constant_ic_update(const rb_iseq_t *const iseq, IC ic) {}
void rb_yjit_tracing_invalidate_all(void) {}
-#endif // if JIT_ENABLED && PLATFORM_SUPPORTED_P
+#endif // if JIT_ENABLED && YJIT_SUPPORTED_P