fix instruction order, now with the save

and finally formatted in statements too
This commit is contained in:
Torsten Ruger
2015-11-03 11:25:02 +02:00
parent dae12c532c
commit 14f8b42015
8 changed files with 88 additions and 90 deletions

View File

@ -54,9 +54,9 @@ class Object
end
end
HERE
@expect = [Label, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot, GetSlot ,
SetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label, GetSlot ,
GetSlot, SetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end

View File

@ -17,9 +17,9 @@ class Object
end
end
HERE
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot, Label ,
RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label, GetSlot ,
Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end
@ -37,9 +37,9 @@ class Object
end
end
HERE
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot, Label ,
RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label, GetSlot ,
Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end
@ -57,9 +57,10 @@ class Object
end
end
HERE
@expect = [Label, LoadConstant, GetSlot, SetSlot, GetSlot, GetSlot, GetSlot ,
SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot ,
RegisterTransfer, FunctionCall, GetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, LoadConstant, GetSlot, SetSlot, GetSlot, GetSlot, GetSlot ,
SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot ,
RegisterTransfer, FunctionCall, Label, GetSlot, Label, RegisterTransfer, GetSlot ,
FunctionReturn]
check
end
@ -77,9 +78,9 @@ class Object
end
end
HERE
@expect = [Label, GetSlot, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot ,
LoadConstant, SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot ,
Label, RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot ,
LoadConstant, SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label ,
GetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end
@ -94,9 +95,9 @@ int main()
end
end
HERE
@expect = [Label, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall ,
GetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall ,
Label, GetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
was = check
set = was.next(7)
assert_equal SetSlot , set.class

View File

@ -34,9 +34,9 @@ class Object
end
end
HERE
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot, SetSlot ,
Label, RegisterTransfer, GetSlot, FunctionReturn]
@expect = [Label, GetSlot, LoadConstant, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label, GetSlot ,
SetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end

View File

@ -70,8 +70,8 @@ class Object
end
HERE
@expect = [Label, GetSlot, GetSlot, SetSlot, LoadConstant, SetSlot, LoadConstant ,
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, GetSlot, SetSlot ,
Label, RegisterTransfer, GetSlot, FunctionReturn]
SetSlot, LoadConstant, SetSlot, RegisterTransfer, FunctionCall, Label, GetSlot ,
SetSlot, Label, RegisterTransfer, GetSlot, FunctionReturn]
check
end
end