to_risc for NotSameCheck

which is only used in call cache checking
some fixing, needed to add a abel for the cache check jump
This commit is contained in:
Torsten Ruger
2018-03-21 12:38:28 +05:30
parent 12c71fa394
commit fa797f722d
5 changed files with 30 additions and 13 deletions

View File

@ -26,7 +26,8 @@ module Vool
end
def test_array
check_array [SlotLoad,NotSameCheck,SlotLoad,MessageSetup,ArgumentTransfer,SimpleCall,SlotLoad,MessageSetup,ArgumentTransfer,DynamicCall] , @ins
check_array [SlotLoad, NotSameCheck, SlotLoad, MessageSetup, ArgumentTransfer, SimpleCall ,
SlotLoad, Label, MessageSetup, ArgumentTransfer, DynamicCall] , @ins
end
end

View File

@ -12,19 +12,19 @@ module Vool
end
def test_condition
assert_equal TruthCheck , @ins.next(10).class
assert_equal TruthCheck , @ins.next(11).class
end
def test_condition_is_slot
assert_equal SlotDefinition , @ins.next(10).condition.class , @ins
assert_equal SlotDefinition , @ins.next(11).condition.class , @ins
end
def test_hoisted_dynamic_call
assert_equal DynamicCall , @ins.next(8).class
assert_equal DynamicCall , @ins.next(9).class
end
def test_array
check_array [NotSameCheck, SlotLoad, MessageSetup, ArgumentTransfer, SimpleCall, SlotLoad ,
MessageSetup, ArgumentTransfer, DynamicCall, SlotLoad, TruthCheck, Label ,
MessageSetup, ArgumentTransfer, SimpleCall, Jump, Label, MessageSetup ,
ArgumentTransfer, SimpleCall, Label] , @ins
Label, MessageSetup, ArgumentTransfer, DynamicCall, SlotLoad, TruthCheck ,
Label, MessageSetup, ArgumentTransfer, SimpleCall, Jump, Label ,
MessageSetup, ArgumentTransfer, SimpleCall, Label] , @ins
end
end