make interpreter tests less brittle

by factoring __init code away
just counting main
This commit is contained in:
Torsten Ruger
2018-04-04 20:05:09 +03:00
parent b9f85f9d2e
commit c51fc67ba5
14 changed files with 216 additions and 246 deletions

View File

@ -25,6 +25,7 @@ module Mom
# Instead we need a DynamicJump instruction that explicitly takes a register as
# a target (not a label)
def to_risc(compiler)
compiler.add_constant( @cache_entry )
reg = compiler.use_reg( :Object )
call = Risc.load_constant( self , @cache_entry , reg )
method_index = Risc.resolve_to_index(:cache_entry , :cached_method)