diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-16 02:05:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 13:05:12 -0400 |
commit | ee864beb7c6730083da656b55f4a9eeaed78bfa8 (patch) | |
tree | 21148b3c967a20efcbeefed2aaa1e385129c04f2 /iseq.c | |
parent | 0264424d58e0eb3ff6fc42b7b4164b6e3b8ea8ca (diff) | |
download | ruby-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |