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

@ -31,7 +31,7 @@ module Vm
raise "must define local '#{name}' before using it" unless index
named_list = use_reg :NamedList
add_slot_to_reg("#{name} load locals" , :message , :frame , named_list )
ret = use_reg @method.locals_type( index )
ret = use_reg @method.frame_type( index )
add_slot_to_reg("#{name} load from locals" , named_list , index + 1, ret )
return ret
end