diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-14 02:21:48 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-14 02:21:48 -0600 |
commit | ee60d3f9a32f75c628961f40a9bf4f1bf387ac06 (patch) | |
tree | f424f292d987f6472f9ca1f5283127797461a075 /st/ClassInstance.java | |
parent | 6ecd1893b4586c7077c6969431b47ca4e0962240 (diff) |
Proper Allocation sizes for Boil VarDeclaration
Diffstat (limited to 'st/ClassInstance.java')
-rw-r--r-- | st/ClassInstance.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/st/ClassInstance.java b/st/ClassInstance.java index ad7e6b0..e93d3bd 100644 --- a/st/ClassInstance.java +++ b/st/ClassInstance.java @@ -29,6 +29,11 @@ public class ClassInstance extends AbstractInstance { return this.mtds; } + public int getSize() { + return 4 * (this.attrs.size() + + this.mtds.size()); + } + protected void addLocal(TypeInstance attr) { this.attrs.add(attr); } |