rubyx/test/mom/instruction/helper.rb

22 lines
437 B
Ruby
Raw Normal View History

2018-05-15 18:29:27 +02:00
require_relative '../helper'
module Mom
class CompilerMock
# resolve a symbol to a type. Allowed symbols are :frame , :receiver and arguments
# which return the respective types, otherwise nil
def resolve_type( name )
return nil
end
2018-05-15 18:29:27 +02:00
def use_reg( type )
Risc.tmp_reg(type , nil)
2018-05-16 11:35:44 +02:00
end
def reset_regs
2018-05-15 18:29:27 +02:00
end
def add_constant(c)
end
end
class InstructionMock < Instruction
end
end