rename locals to frame

This commit is contained in:
Torsten Ruger
2018-03-14 20:24:47 +05:30
parent 7db329fa6b
commit 559a797100
9 changed files with 25 additions and 25 deletions

View File

@ -30,8 +30,8 @@ module Vool
def create_objects
args_type = make_type
locals_type = make_locals
method = Parfait::VoolMethod.new(name , args_type , locals_type , body )
frame_type = make_frame
method = Parfait::VoolMethod.new(name , args_type , frame_type , body )
@clazz.add_method( method )
typed_method = method.create_parfait_method(clazz.instance_type)
compiler = Risc::MethodCompiler.new( typed_method ).init_method
@ -47,7 +47,7 @@ module Vool
Parfait::NamedList.type_for( type_hash )
end
def make_locals
def make_frame
type_hash = {}
vars = []
@body.collect([]).each { |node| node.add_local(vars) }