remove Data2 in favour of Data4
as we write a Marker, type and marker make up 2 so data2 is just the type, not useful
This commit is contained in:
@ -117,7 +117,7 @@ module Risc
|
||||
# superclasses other than default object
|
||||
def super_class_names
|
||||
{ Object: :Kernel , Kernel: :Value , BinaryCode: :Word ,
|
||||
Data2: :DataObject ,Data8: :DataObject , Integer: :Data2, Word: :Data8}
|
||||
Data4: :DataObject ,Data8: :DataObject , Integer: :Data4, Word: :Data8}
|
||||
end
|
||||
|
||||
# the function really just returns a constant (just avoiding the constant)
|
||||
@ -129,9 +129,9 @@ module Risc
|
||||
Message: { next_message: :Message, receiver: :Object, frame: :NamedList ,
|
||||
return_address: :Integer, return_value: :Integer,
|
||||
caller: :Message , name: :Word , arguments: :NamedList },
|
||||
Integer: {},
|
||||
Integer: {next_i: :Integer},
|
||||
DataObject: {},
|
||||
Data2: {},
|
||||
Data4: {},
|
||||
Data8: {},
|
||||
TrueClass: {},
|
||||
FalseClass: {},
|
||||
|
@ -87,7 +87,7 @@ module Risc
|
||||
write_String obj
|
||||
when Parfait::BinaryCode
|
||||
write_BinaryCode obj
|
||||
when Parfait::Data2
|
||||
when Parfait::Data4
|
||||
write_data2 obj
|
||||
else
|
||||
write_object obj
|
||||
@ -143,7 +143,7 @@ module Risc
|
||||
def write_data2( code )
|
||||
@stream.write_signed_int_32( MARKER )
|
||||
write_ref_for( code.get_type )
|
||||
log.debug "Data2 witten stream 0x#{@stream.length.to_s(16)}"
|
||||
log.debug "Data4 witten stream 0x#{@stream.length.to_s(16)}"
|
||||
end
|
||||
|
||||
def write_BinaryCode( code )
|
||||
|
Reference in New Issue
Block a user