This commit is contained in:
Torsten Ruger 2015-10-16 13:12:52 +03:00
parent 6f856315d7
commit 349352faa9
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ module Phisol
def on_assignment statement
reset_regs # statements reset registers, ie have all at their disposal
puts statement.inspect
#puts statement.inspect
name , value = *statement
name = name.to_a.first
v = process(value)

View File

@ -4,7 +4,7 @@ module Phisol
def on_field_def statement
reset_regs # field_def is a statement, no return and all regs
puts statement.inspect
#puts statement.inspect
type , name , value = *statement
@method.ensure_local( name, type ) unless( @method.has_arg(name))
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)

View File

@ -39,7 +39,7 @@ class Object
end
end
HERE
@expect = [[Virtual::MethodEnter,LoadConstant, GetSlot] , [Virtual::MethodReturn]]
@expect = [[Virtual::MethodEnter,LoadConstant, SetSlot,GetSlot] , [Virtual::MethodReturn]]
check
end

View File

@ -2,4 +2,4 @@ require_relative "expressions/test_all"
require_relative "statements/test_all"
require_relative "fragments/test_all"
#require_relative "fragments/test_all"