mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/ruby_vm support for pre-2.0 BASERUBY
This was not requested :) but actually easier than the previous so I just did it anyway. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a72c77c79
commit
fbacf5faad
6 changed files with 16 additions and 9 deletions
|
@ -28,7 +28,7 @@ class RubyVM::BareInstructions
|
|||
@pops = typesplit @sig[:pop].reject {|i| i == '...' }
|
||||
@rets = typesplit @sig[:ret].reject {|i| i == '...' }
|
||||
@attrs = opts[:attributes].map {|i|
|
||||
RubyVM::Attribute.new insn: self, **i
|
||||
RubyVM::Attribute.new i.merge(:insn => self)
|
||||
}.each_with_object({}) {|a, h|
|
||||
h[a.key] = a
|
||||
}
|
||||
|
@ -149,8 +149,7 @@ class RubyVM::BareInstructions
|
|||
end
|
||||
|
||||
@instances = RubyVM::InsnsDef.map {|h|
|
||||
hh = h.merge(:template => h)
|
||||
new hh
|
||||
new h.merge(:template => h)
|
||||
}
|
||||
|
||||
def self.fetch name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue