summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-16 02:05:12 +0900
committerGitHub <noreply@github.com>2022-08-15 13:05:12 -0400
commitee864beb7c6730083da656b55f4a9eeaed78bfa8 (patch)
tree21148b3c967a20efcbeefed2aaa1e385129c04f2 /iseq.c
parent0264424d58e0eb3ff6fc42b7b4164b6e3b8ea8ca (diff)
downloadruby-ee864beb7c6730083da656b55f4a9eeaed78bfa8.tar.gz
Simplify around `USE_YJIT` macro (#6240)
* Simplify around `USE_YJIT` macro - Use `USE_YJIT` macro only instead of `YJIT_BUILD`. - An intermediate macro `YJIT_SUPPORTED_P` is no longer used. * Bail out if YJIT is enabled on unsupported platforms
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index 3d40b88a0d..f17a2d49b6 100644
--- a/iseq.c
+++ b/iseq.c
@@ -175,7 +175,7 @@ rb_iseq_free(const rb_iseq_t *iseq)
iseq_clear_ic_references(iseq);
struct rb_iseq_constant_body *const body = ISEQ_BODY(iseq);
mjit_free_iseq(iseq); /* Notify MJIT */
-#if YJIT_BUILD
+#if USE_YJIT
rb_yjit_iseq_free(body->yjit_payload);
#endif
ruby_xfree((void *)body->iseq_encoded);
@@ -438,7 +438,7 @@ rb_iseq_update_references(rb_iseq_t *iseq)
#if USE_MJIT
mjit_update_references(iseq);
#endif
-#if YJIT_BUILD
+#if USE_YJIT
rb_yjit_iseq_update_references(body->yjit_payload);
#endif
}
@@ -526,7 +526,7 @@ rb_iseq_mark(const rb_iseq_t *iseq)
#if USE_MJIT
mjit_mark_cc_entries(body);
#endif
-#if YJIT_BUILD
+#if USE_YJIT
rb_yjit_iseq_mark(body->yjit_payload);
#endif
}