change build names a little and document
This commit is contained in:
@ -20,9 +20,22 @@ module Risc
|
||||
SlotToReg, RegToSlot, SlotToReg, SlotToReg, SlotToReg,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot,
|
||||
SlotToReg, LoadConstant, FunctionCall, Label, SlotToReg,
|
||||
SlotToReg, SlotToReg, SlotToReg, Label, LoadConstant,
|
||||
SlotToReg, OperatorInstruction, IsZero, Label, Transfer,
|
||||
Syscall, NilClass]
|
||||
SlotToReg, SlotToReg, SlotToReg, SlotToReg, Label,
|
||||
LoadConstant, SlotToReg, OperatorInstruction, IsZero, SlotToReg,
|
||||
OperatorInstruction, IsNotZero, Label, SlotToReg, Branch,
|
||||
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||
SlotToReg, OperatorInstruction, IsNotZero, Label, SlotToReg,
|
||||
Branch, Label, LoadConstant, SlotToReg, OperatorInstruction,
|
||||
IsZero, SlotToReg, OperatorInstruction, IsNotZero, Label,
|
||||
SlotToReg, Branch, Label, LoadConstant, SlotToReg,
|
||||
OperatorInstruction, IsZero, SlotToReg, OperatorInstruction, IsNotZero,
|
||||
Label, SlotToReg, Branch, Label, LoadConstant,
|
||||
SlotToReg, OperatorInstruction, IsZero, SlotToReg, OperatorInstruction,
|
||||
IsNotZero, Label, SlotToReg, Branch, Label,
|
||||
LoadConstant, SlotToReg, OperatorInstruction, IsZero, SlotToReg,
|
||||
OperatorInstruction, IsNotZero, Label, SlotToReg, Branch,
|
||||
Label, LoadConstant, SlotToReg, OperatorInstruction, IsZero,
|
||||
Label, Transfer, Syscall, NilClass]
|
||||
#assert_equal 1 , get_return
|
||||
end
|
||||
|
||||
|
@ -6,8 +6,7 @@ module Risc
|
||||
def setup
|
||||
Risc.machine.boot
|
||||
init = Parfait.object_space.get_init
|
||||
compiler = Risc::MethodCompiler.new( init )
|
||||
@builder = Builder.new(compiler)
|
||||
@builder = Risc::MethodCompiler.new( init ).builder
|
||||
end
|
||||
def test_has_build
|
||||
assert @builder.respond_to?(:build)
|
||||
|
Reference in New Issue
Block a user