fix many tests with preloading
preloading, something akin to builtin, loads some very small predefined (macro) methods for the tests to work (ie call)
This commit is contained in:
@ -5,8 +5,8 @@ module Risc
|
||||
include Statements
|
||||
|
||||
def setup
|
||||
super
|
||||
@input = "while(5 > 0) ; @a = true; end;return"
|
||||
@preload = "Integer.ge"
|
||||
@input = "while(5 > 0) ; @false_object = true; end;return"
|
||||
@expect = [Label, LoadConstant, SlotToReg, RegToSlot, LoadConstant, #5
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot, #10
|
||||
LoadConstant, SlotToReg, RegToSlot, SlotToReg, FunctionCall, #15
|
||||
|
Reference in New Issue
Block a user