increase binary_code size to 32

save a few jump, adds some size to binary
16 just seemed kind of small
This commit is contained in:
2019-08-22 12:26:40 +03:00
parent 064bb2f90f
commit 5dc8c046e7
27 changed files with 318 additions and 311 deletions

View File

@ -6,7 +6,7 @@ module Parfait
# in these. As Objects are fixed size (this one 16 words), we use linked list
# and as the last code of each link is a jump to the next link.
#
class BinaryCode < Data16
class BinaryCode < Data32
attr :type, :next_code
def self.type_length

View File

@ -1,9 +1,8 @@
# Integer class for representing maths on Integers
# Integers are Objects, specifically DataObjects
# - they have fixed value
# - they are immutable
# (both by implementation, not design.
# Ie it would be possible to change the value, we just don't support that)
# - they are immutable fo rthe most part (or to the user)
#
class Integer < Data4
attr :type, :next_integer

View File

@ -120,7 +120,7 @@ module Parfait
Data8: :DataObject ,
Data16: :DataObject ,
Data32: :DataObject ,
BinaryCode: :Data16 ,
BinaryCode: :Data32 ,
Integer: :Data4 ,
Word: :Data8 ,
List: :Data16 ,