diff options
author | alon@honor <none@none> | 2010-10-11 21:10:02 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-11 21:10:02 -0700 |
commit | cb9319ec92505750d2e1a17dd230141aba9edcf7 (patch) | |
tree | be0af9b260a5ba9fa894a5be1fbd6110b31bd977 /src/parseTools.js | |
parent | 425295d786880c7741a9eab9768d5aa32a7c3faf (diff) |
increment stack all at once; 2% speedup
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 4d1ed438..ca96ba65 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -446,3 +446,11 @@ function cleanLabel(label) { } } +function calcAllocatedSize(type, TYPES) { + if (pointingLevels(type) == 0 && isStructType(type)) { + return TYPES[type].flatSize; // makeEmptyStruct(item.allocatedType).length; + } else { + return 1; + } +} + |