add parfait block

This commit is contained in:
Torsten Ruger
2018-07-07 15:50:43 +03:00
parent 9005513368
commit 2f07cc34f3
11 changed files with 83 additions and 9 deletions

View File

@ -124,6 +124,7 @@ module Parfait
Word: :Data8 ,
List: :Data16 ,
CallableMethod: :Callable,
Block: :Callable,
ReturnAddress: :Integer}
end
@ -132,6 +133,9 @@ module Parfait
# and all instance variable names. Really have to find a better way
def self.type_names
{BinaryCode: {next: :BinaryCode} ,
Block: {binary: :BinaryCode, next: :CallableMethod,
arguments_type: :Type , self_type: :Type, frame_type: :Type } ,
CacheEntry: {cached_type: :Type , cached_method: :CallableMethod } ,
Callable: {binary: :BinaryCode,next: :Callable ,
arguments_type: :Type , self_type: :Type, frame_type: :Type } ,