summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-13 13:14:44 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-13 13:14:44 -0500
commitf251e1d169b8f578448974fa47f5512651d6ea11 (patch)
tree9f60a7eddfc185e4b6357a849ff65e6270c41cca /src/parsetree.h
parent5fd08bd5d468c3f701ecd155ceb295c1c98315b9 (diff)
downloadcolm-f251e1d169b8f578448974fa47f5512651d6ea11.tar.gz
separate initialization of field instructions from placement
Diffstat (limited to 'src/parsetree.h')
-rw-r--r--src/parsetree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsetree.h b/src/parsetree.h
index d5d5cd42..d9bd75ff 100644
--- a/src/parsetree.h
+++ b/src/parsetree.h
@@ -2351,6 +2351,7 @@ struct ObjectField
offset(0),
beenReferenced(false),
beenInitialized(false),
+ beenPlaced(false),
useOffset(true),
isConst(false),
isLhsEl(false), isRhsEl(false),
@@ -2387,6 +2388,7 @@ struct ObjectField
long offset;
bool beenReferenced;
bool beenInitialized;
+ bool beenPlaced;
bool useOffset;
bool isConst;
bool isLhsEl;
@@ -2513,6 +2515,7 @@ struct ObjectDef
void referenceField( Compiler *pd, ObjectField *field );
void initField( Compiler *pd, ObjectField *field );
+ void placeField( Compiler *pd, ObjectField *field );
void createCode( Compiler *pd, CodeVect &code );
ObjMethod *findMethod( const String &name ) const;
ObjectField *findFieldInScope( const ObjNameScope *scope, const String &name ) const;