diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-07-15 14:30:43 -0700 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:38 -0400 |
commit | 41f405c486a01c1a16c3f102c11d41c8fbbafe60 (patch) | |
tree | 3bc1a173f6a634071bb62533d25d741d3b156d34 /yjit_iface.c | |
parent | 84a1e04e5873e511c8454983c3c34c6494bc5491 (diff) |
Remove the scraper
Now that we're using the jit function entry point, we don't need the
scraper. Thank you for your service, scraper. ❤️
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index 6a04262399..0985dd8d53 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -13,7 +13,6 @@ #include "yjit_iface.h" #include "yjit_codegen.h" #include "yjit_core.h" -#include "yjit_hooks.inc" #include "darray.h" #if HAVE_LIBCAPSTONE @@ -48,22 +47,6 @@ static const rb_data_type_t yjit_block_type = { 0, 0, RUBY_TYPED_FREE_IMMEDIATELY }; -// Write the YJIT entry point pre-call bytes -void -cb_write_pre_call_bytes(codeblock_t* cb) -{ - for (size_t i = 0; i < sizeof(yjit_with_ec_pre_call_bytes); ++i) - cb_write_byte(cb, yjit_with_ec_pre_call_bytes[i]); -} - -// Write the YJIT exit post-call bytes -void -cb_write_post_call_bytes(codeblock_t* cb) -{ - for (size_t i = 0; i < sizeof(yjit_with_ec_post_call_bytes); ++i) - cb_write_byte(cb, yjit_with_ec_post_call_bytes[i]); -} - // Get the PC for a given index in an iseq VALUE * yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx) @@ -1021,7 +1004,7 @@ outgoing_ids(VALUE self) void rb_yjit_init(struct rb_yjit_options *options) { - if (!yjit_scrape_successful || !PLATFORM_SUPPORTED_P) { + if (!PLATFORM_SUPPORTED_P) { return; } |