From b82db5251c2c39f8a10cd21b595cc1cad8155cdc Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 6 Sep 2009 20:42:50 +0000 Subject: * 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 --- tool/instruction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') 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 -- cgit v1.2.3