diff --git a/TypeNodes.py b/TypeNodes.py index b621d5317331e04522e6fc457f53c157e8b20496..28b222c58dec73c4435f72bad8c0cc78a404ce47 100644 --- a/TypeNodes.py +++ b/TypeNodes.py @@ -331,7 +331,7 @@ class ClassNode(ClassInterNode): ####### ADDING METHODS TO CLASS MEMORY LAYOUT AND FIELDS TO FIELD OFFSET TABLE ######### # Copying over the offsets of methods from superclass and DECLARING memory segment for the methods - lastMethodOffset = 0 # stores the largest method offset in the superCalss + lastMethodOffset = 4 # stores the largest method offset in the superCalss # TODO: set this to 4 after the implemntation of both the SIT and subtype testing table # Note: This is 4 less than the offset of where the next method would be located # This is to accomodate for the addition of 4 to lastMethodOffset in EVERY (including the first) iteration in the