diff options
author | Aaron Patterson <[email protected]> | 2021-07-15 14:30:43 -0700 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:38 -0400 |
commit | 41f405c486a01c1a16c3f102c11d41c8fbbafe60 (patch) | |
tree | 3bc1a173f6a634071bb62533d25d741d3b156d34 /tool/ruby_vm/views | |
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 'tool/ruby_vm/views')
-rw-r--r-- | tool/ruby_vm/views/vm.inc.erb | 14 | ||||
-rw-r--r-- | tool/ruby_vm/views/yjit_hooks.inc.erb | 24 |
2 files changed, 0 insertions, 38 deletions
diff --git a/tool/ruby_vm/views/vm.inc.erb b/tool/ruby_vm/views/vm.inc.erb index a4a32a8623..c1a3faf60a 100644 --- a/tool/ruby_vm/views/vm.inc.erb +++ b/tool/ruby_vm/views/vm.inc.erb @@ -25,20 +25,6 @@ <%= render 'insn_entry', locals: { insn: insn } -%> % end % -% RubyVM::YJIT::ExampleInstructions.to_a.each do |insn| -INSN_ENTRY(yjit_call_example_with_ec) -{ - START_OF_ORIGINAL_INSN(yjit_call_example_with_ec); -#if USE_MACHINE_REGS - // assumes USE_MACHINE_REGS, aka reg_pc setup, - // aka #define SET_PC(x) (reg_cfp->pc = reg_pc = (x)) - rb_yjit_empty_func_with_ec(GET_CFP(), ec); - RESTORE_REGS(); -#endif - END_INSN(yjit_call_example_with_ec); -} -% end -% % RubyVM::TraceInstructions.to_a.each do |insn| <%= render 'trace_instruction', locals: { insn: insn } -%> % end diff --git a/tool/ruby_vm/views/yjit_hooks.inc.erb b/tool/ruby_vm/views/yjit_hooks.inc.erb deleted file mode 100644 index 1abd281491..0000000000 --- a/tool/ruby_vm/views/yjit_hooks.inc.erb +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- C -*- */ - -%# Copyright (c) 2020 Wu, Alan. All rights reserved. -%# -%# This file is a part of the programming language Ruby. Permission is hereby -%# granted, to either redistribute and/or modify this file, provided that the -%# conditions mentioned in the file COPYING are met. Consult the file for -%# details. -<%= render 'copyright' %> -<%= render 'notice', locals: { - this_file: 'contains raw instruction bytes that helps YJIT generate code', - edit: __FILE__, -} -%> - -% success, byte_arrays = RubyVM::YJIT.scrape -static const uint8_t yjit_scrape_successful = <%= success %>; -% byte_arrays.each do |(prefix, scrape_result)| -// Disassembly: -% scrape_result.disassembly_lines.each do |line| -// <%= line %> -% end -static const uint8_t <%= prefix %>_pre_call_bytes[] = { <%= scrape_result.pre_call_bytes %> }; -static const uint8_t <%= prefix %>_post_call_bytes[] = { <%= scrape_result.post_call_bytes %> }; -% end |