move constants to machine
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user