diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-11 16:07:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-11 16:07:21 +0000 |
commit | b5d5cce11b6980e963d84a7ee16a3d9a04a682da (patch) | |
tree | 74ae943e92a1b443b91fb3d7ffbb8818cd9b8b19 /tool | |
parent | f623428d1a82409382548a37b5e63ea69b47aef9 (diff) | |
download | bundler-b5d5cce11b6980e963d84a7ee16a3d9a04a682da.tar.gz |
vm_exec.h: introduce macros for abstarction.
* vm_exec.h: declare two macros
* START_OF_ORIGINAL_INSN()
* DISPATCH_ORIGINAL_INSN()
instead of inserting label and goto lines.
For OPT_CALL_THREADED_CODE, first macro is empty and second macro
is simply call the original insn function.
* tool/instruction.rb: use above macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/instruction.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb index 3354933da9..447fed5948 100755 --- a/tool/instruction.rb +++ b/tool/instruction.rb @@ -540,7 +540,7 @@ class RubyVM @insns.dup.each{|insn| body = <<-EOS vm_trace(ec, GET_CFP(), GET_PC()); - goto start_of_#{insn.name}; + DISPATCH_ORIGINAL_INSN(#{insn.name}); EOS trace_insn = Instruction.new(name = "trace_#{insn.name}", @@ -884,7 +884,7 @@ class RubyVM end def make_header insn - label = insn.trace ? '' : "start_of_#{insn.name}:;" + label = insn.trace ? '' : "START_OF_ORIGINAL_INSN(#{insn.name});" commit "INSN_ENTRY(#{insn.name}){#{label}" make_header_prepare_stack insn commit "{" |