rubyx/test/support/fake_compiler.rb
Torsten Ruger ff8b95f21a get block resolution to use the extra
block_compiler puts in the extra, that we get out when resolving the type
Thus block args work, though only by assuming direct call
2018-07-17 10:37:33 +03:00

18 lines
325 B
Ruby

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
def use_reg(type , extra = {})
RegisterValue.new(:r1 , type)
end
def reset_regs
end
def add_constant(c)
end
end
end