From 61d983df58c65adfdfce252c8a25561fec33601c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 1 Sep 2009 22:48:51 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ tool/instruction.rb | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e95db1b955..f496bb24f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 2 07:42:15 2009 Nobuyoshi Nakada + + * tool/instruction.rb (RubyVM::InstructionsLoader#make_stackcaching_insns): + simplified. + Wed Sep 2 02:32:46 2009 NARUSE, Yui * ext/json/lib/json/common.rb (NaN): Change definition diff --git a/tool/instruction.rb b/tool/instruction.rb index 8d55683da3..1a09ab347c 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|