summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-01 22:48:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-01 22:48:51 +0000
commit61d983df58c65adfdfce252c8a25561fec33601c (patch)
tree2c90407df4940b46f95012fbde3045905867028f /tool
parentd17fe8a46722912e9904982f89b3949b41acc68f (diff)
* tool/instruction.rb (RubyVM::InstructionsLoader#make_stackcaching_insns):
simplified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/instruction.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/tool/instruction.rb b/tool/instruction.rb
index 8d55683..1a09ab3 100644
--- a/tool/instruction.rb
+++ b/tool/instruction.rb
@@ -1,4 +1,4 @@
-#
+#!./miniruby
#
#
@@ -505,14 +505,9 @@ class RubyVM
orets = insn.rets
oopes = insn.opes
ocomm = insn.comm
+ oname = insn.name
- after = nil
- SPECIAL_INSN_FOR_SC_AFTER.any?{|k, v|
- if k =~ insn.name
- after = v
- break
- end
- }
+ after = SPECIAL_INSN_FOR_SC_AFTER.find {|k, v| k =~ oname}
insns = []
FROM_SC.each{|from|