diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 20:42:50 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 20:42:50 +0000 |
commit | b82db5251c2c39f8a10cd21b595cc1cad8155cdc (patch) | |
tree | 9a3e5a4bac2efb8080b4649661b874a007c45cdf /tool/instruction.rb | |
parent | cea5aeb795149cead9a9cb151a4754c6ce185d13 (diff) | |
download | ruby-b82db5251c2c39f8a10cd21b595cc1cad8155cdc.tar.gz |
* 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/instruction.rb')
-rwxr-xr-x | tool/instruction.rb | 2 |
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 |