Remove MethodReturn instruction

and pass
and fix all tests
move towards removing all vm instructions
This commit is contained in:
Torsten Ruger
2015-10-18 17:32:32 +03:00
parent ae21feb6dc
commit 8bf1337043
18 changed files with 40 additions and 67 deletions

View File

@ -16,7 +16,7 @@ class Object
end
HERE
@expect = [[Virtual::MethodEnter],[LoadConstant,IsZeroBranch,LoadConstant,AlwaysBranch],
[],[Virtual::MethodReturn]]
[],[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
@ -33,7 +33,7 @@ end
HERE
@expect = [[Virtual::MethodEnter,LoadConstant,GetSlot,SetSlot],[GetSlot,GetSlot,LoadConstant,OperatorInstruction,
IsZeroBranch,GetSlot,GetSlot,LoadConstant,OperatorInstruction,GetSlot,SetSlot,AlwaysBranch],
[],[Virtual::MethodReturn]]
[],[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
@ -54,7 +54,7 @@ HERE
[GetSlot,GetSlot,LoadConstant,OperatorInstruction,IsZeroBranch,GetSlot,
GetSlot,LoadConstant,OperatorInstruction,GetSlot,SetSlot,GetSlot,
GetSlot,AlwaysBranch] ,
[],[Virtual::MethodReturn]]
[],[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
end