code for method

This commit is contained in:
Torsten Ruger 2015-05-24 16:24:57 +03:00
parent 38cb9f7d3c
commit 3e18694be7
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ module Parfait
raise "No class #{name}" unless clazz
@for_class = clazz
@name = name
@code = Word.new_object 0
@arg_names = arg_names
@locals = []
@tmps = []

View File

@ -31,7 +31,7 @@ module Virtual
"Layout" => ["object_class"] ,
"Class" => ["object_layout"],
"Dictionary" => ["keys" , "values"] ,
"Method" => ["name" , "arg_names" , "locals" , "tmps"] ,
"Method" => ["name" , "code" ,"arg_names" , "locals" , "tmps"] ,
"Module" => ["name" , "instance_methods", "super_class", "meta_class"]
}
layouts.each do |name , layout|