unite the two resolve_to_index functions

This commit is contained in:
Torsten Ruger
2018-04-05 20:10:00 +03:00
parent f4ce6d6253
commit f09086e524
11 changed files with 105 additions and 46 deletions

View File

@ -62,11 +62,11 @@ module Risc
method = compiler.use_reg( :TypedMethod )
method_name = compiler.use_reg( :Word )
space = compiler.use_reg( :Space )
methods_index = Risc.resolve_to_index(:type , :methods)
next_index = Risc.resolve_to_index(:typed_method , :next_method)
name_index = Risc.resolve_to_index(:typed_method , :name)
binary_index = Risc.resolve_to_index(:typed_method , :binary)
nil_index = Risc.resolve_to_index(:space , :nil_object)
methods_index = Risc.resolve_to_index(:Type , :methods)
next_index = Risc.resolve_to_index(:TypedMethod , :next_method)
name_index = Risc.resolve_to_index(:TypedMethod , :name)
binary_index = Risc.resolve_to_index(:TypedMethod , :binary)
nil_index = Risc.resolve_to_index(:Space , :nil_object)
while_start = Risc.label( source , source + "while_start_#{object_id}")
exit_label = Risc.label( source , source + "exit_label_#{object_id}")
false_label = Risc.label( source , source + "fal_label_#{object_id}")