make mom:method_compiler a list
Compilers forms alist by Util::CompilerList Change Collection to use the list instead of array
This commit is contained in:
@ -21,7 +21,7 @@ module Vool
|
||||
def setup
|
||||
source = "class Integer<Data4;def +(other);X.int_operator(:+);end;end;" + class_main
|
||||
ret = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_mom(source)
|
||||
@ins = ret.compilers.find{|c|c.callable.name==:main}.mom_instructions.next
|
||||
@ins = ret.compilers.find_compiler{|c|c.callable.name==:main}.mom_instructions.next
|
||||
end
|
||||
def test_array
|
||||
check_array [MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,
|
||||
|
@ -20,8 +20,8 @@ module Vool
|
||||
|
||||
def setup
|
||||
ret = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_mom(class_main)
|
||||
@compiler = ret.compilers.find{|c|c.callable.name==:some_inst}
|
||||
@main = ret.compilers.find{|c|c.callable.name==:main}
|
||||
@compiler = ret.compilers.find_compiler{|c|c.callable.name==:some_inst}
|
||||
@main = ret.compilers.find_compiler{|c|c.callable.name==:main}
|
||||
@ins = @compiler.mom_instructions.next
|
||||
end
|
||||
def test_class_inst
|
||||
|
@ -23,7 +23,7 @@ module Vool
|
||||
def setup
|
||||
source = "class Integer < Data4;def +(other);X.int_operator(:+);end;end;" + class_main
|
||||
ret = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_mom(source)
|
||||
@ins = ret.compilers.find{|c|c.callable.name==:main}.mom_instructions.next
|
||||
@ins = ret.compilers.find_compiler{|c|c.callable.name==:main}.mom_instructions.next
|
||||
end
|
||||
def test_array
|
||||
check_array [MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,
|
||||
|
Reference in New Issue
Block a user