summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 20:42:50 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 20:42:50 +0000
commitb82db5251c2c39f8a10cd21b595cc1cad8155cdc (patch)
tree9a3e5a4bac2efb8080b4649661b874a007c45cdf /tool
parentcea5aeb795149cead9a9cb151a4754c6ce185d13 (diff)
* 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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/instruction.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 1a09ab347c..088505d638 100755
--- a/tool/instruction.rb
+++ b/tool/instruction.rb
@@ -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