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
This commit is contained in:
Torsten Ruger
2018-07-17 10:37:33 +03:00
parent 280ea8a8c4
commit ff8b95f21a
7 changed files with 36 additions and 11 deletions

View File

@ -6,7 +6,7 @@ module Risc
def resolve_type(name)
Parfait.object_space.types.values.first
end
def use_reg(type)
def use_reg(type , extra = {})
RegisterValue.new(:r1 , type)
end
def reset_regs