move constants to machine

This commit is contained in:
Torsten Ruger
2015-10-28 13:00:23 +02:00
parent 7e0778dc70
commit e75517ff05
4 changed files with 4 additions and 9 deletions

View File

@ -38,7 +38,7 @@ module Soml
def on_string expression
value = expression.first.to_sym
reg = use_reg :Word
@method.source.constants << value
Register.machine.constants << value
add_code Register::LoadConstant.new( expression, value , reg )
return reg
end