diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2020-10-05 16:08:02 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:24 -0400 |
commit | 7662653b4c122f638b323d667be93ba516cd535d (patch) | |
tree | 81b863eb6257d7474a3f6cacb621f7424fc0eb51 /tool/ruby_vm/views/vm.inc.erb | |
parent | edede7733d2a16872918081c1dad2c1ed096dc36 (diff) |
Fix compilation for OPT_THREADED_CODE=2
Diffstat (limited to 'tool/ruby_vm/views/vm.inc.erb')
-rw-r--r-- | tool/ruby_vm/views/vm.inc.erb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tool/ruby_vm/views/vm.inc.erb b/tool/ruby_vm/views/vm.inc.erb index 3c7b602859..91e0b930c0 100644 --- a/tool/ruby_vm/views/vm.inc.erb +++ b/tool/ruby_vm/views/vm.inc.erb @@ -25,16 +25,19 @@ <%= render 'insn_entry', locals: { insn: insn } -%> % end % -% RubyVM::TraceInstructions.to_a.each do |insn| -<%= render 'trace_instruction', locals: { insn: insn } -%> -% end % RubyVM::MicroJIT::ExampleInstructions.to_a.each do |insn| INSN_ENTRY(<%= insn.name %>) { START_OF_ORIGINAL_INSN(<%= insn.name %>); +#if USE_MACHINE_REGS // assumes USE_MACHINE_REGS, aka reg_pc setup, // aka #define SET_PC(x) (reg_cfp->pc = reg_pc = (x)) reg_pc = rb_ujit_empty_func(GET_CFP()); +#endif END_INSN(<%= insn.name %>); } % end +% +% RubyVM::TraceInstructions.to_a.each do |insn| +<%= render 'trace_instruction', locals: { insn: insn } -%> +% end |