2018-07-16 11:46:18 +03:00
|
|
|
module Risc
|
|
|
|
class FakeCompiler
|
|
|
|
def slot_type(slot,type)
|
|
|
|
type.type_for(slot)
|
|
|
|
end
|
|
|
|
def resolve_type(name)
|
|
|
|
Parfait.object_space.types.values.first
|
|
|
|
end
|
2018-07-17 10:37:33 +03:00
|
|
|
def use_reg(type , extra = {})
|
2018-07-16 11:46:18 +03:00
|
|
|
RegisterValue.new(:r1 , type)
|
|
|
|
end
|
|
|
|
def reset_regs
|
|
|
|
end
|
|
|
|
def add_constant(c)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|