summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--tool/instruction.rb11
2 files changed, 8 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index e95db1b..f496bb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 2 07:42:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/instruction.rb (RubyVM::InstructionsLoader#make_stackcaching_insns):
+ simplified.
+
Wed Sep 2 02:32:46 2009 NARUSE, Yui <naruse@ruby-lang.org>
* ext/json/lib/json/common.rb (NaN): Change definition
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|