mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (opt_*): add IC operands.
* vm_insnhelper.h (CALL_SIMPLE_METHOD): add a version which use an inline cache. USE_IC_FOR_SPECIALIZED_METHOD macro switchs the behaviour. This change also removes CALL_SIMPLE_METHOD_IC() macro. * tool/instruction.rb: fix elimination process to ignore variable "ic". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cea5aeb795
commit
b82db5251c
4 changed files with 45 additions and 23 deletions
|
@ -704,7 +704,7 @@ class RubyVM
|
|||
end
|
||||
|
||||
re = /\b#{var}\b/n
|
||||
if re =~ insn.body or re =~ insn.sp_inc or insn.rets.any?{|t, v| re =~ v}
|
||||
if re =~ insn.body or re =~ insn.sp_inc or insn.rets.any?{|t, v| re =~ v} or re =~ 'ic'
|
||||
ops << " #{type} #{var} = (#{type})GET_OPERAND(#{i+1});"
|
||||
end
|
||||
n += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue