minor send fixes
This commit is contained in:
parent
3e46dcda4e
commit
eb57eb4d41
@ -36,7 +36,7 @@ module Virtual
|
||||
|
||||
class Machine
|
||||
|
||||
FIRST_PASS = "Virtual::SendImplementation"
|
||||
FIRST_PASS = "Virtual::GetImplementation"
|
||||
LAST_PASS = "Virtual::SetOptimisation"
|
||||
|
||||
def initialize
|
||||
|
@ -13,5 +13,4 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual.machine.add_pass "Virtual::GetImplementation"
|
||||
end
|
||||
|
@ -44,7 +44,7 @@ int foo()
|
||||
end
|
||||
foo()
|
||||
HERE
|
||||
@output = [[Virtual::MethodEnter , Virtual::NewMessage, Virtual::Set, Virtual::Set, Virtual::MessageSend],
|
||||
@output = [[Virtual::MethodEnter , Virtual::NewMessage, Virtual::Set, Virtual::Set, Virtual::MethodCall],
|
||||
[Virtual::MethodReturn]]
|
||||
check
|
||||
end
|
||||
|
@ -9,7 +9,7 @@ int foo(int x)
|
||||
int a = 5
|
||||
return a
|
||||
end
|
||||
3.foo( 4 )
|
||||
foo( 4 )
|
||||
HERE
|
||||
@expect = [ Virtual::Return ]
|
||||
check
|
||||
|
@ -64,6 +64,7 @@ class TestPuts < MiniTest::Test
|
||||
"GetSlot" , "RegisterTransfer" ,"GetSlot" , "GetSlot","GetSlot",
|
||||
"FunctionReturn" , "RegisterTransfer" , "Syscall" , "NilClass"].each_with_index do |name , index|
|
||||
got = ticks(1)
|
||||
#puts "TICK #{index}"
|
||||
assert got.class.name.index(name) , "Wrong class for #{index+1}, expect #{name} , got #{got}"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user