remove MethodEnter Instructions

only resolved to SaveReturn anyway
also Halt instruction wasn’t used, gone
passes changed to start at register
This commit is contained in:
Torsten Ruger
2015-10-18 17:39:35 +03:00
parent 8bf1337043
commit fa4949fc80
20 changed files with 35 additions and 77 deletions

View File

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