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

@ -19,7 +19,7 @@ HERE
@expect = [[Virtual::MethodEnter,LoadConstant,LoadConstant,
OperatorInstruction,IsZeroBranch] ,
[LoadConstant,AlwaysBranch] ,[LoadConstant] ,[] ,
[Virtual::MethodReturn]]
[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
@ -37,7 +37,7 @@ HERE
@expect = [[Virtual::MethodEnter,LoadConstant,LoadConstant,
OperatorInstruction,IsZeroBranch] ,
[AlwaysBranch] ,[LoadConstant] ,[] ,
[Virtual::MethodReturn]]
[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
@ -56,7 +56,7 @@ end
HERE
@expect = [ [Virtual::MethodEnter,GetSlot,SetSlot,LoadConstant,
SetSlot,LoadConstant,SetSlot,Virtual::MethodCall,
GetSlot] ,[Virtual::MethodReturn] ]
GetSlot] ,[RegisterTransfer,GetSlot,FunctionReturn] ]
check
end
end