diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-21 22:27:29 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-21 22:27:29 -0800 |
commit | ad9cb98dba27655710b7df337ea276ad68b9bac9 (patch) | |
tree | f47c7ae7bd2addba4c1cfe325246269638abfaaf /src/parseTools.js | |
parent | 52d04311943f4ccd5ec86bb6982c6f755d7db888 (diff) |
strengthen SAFE_HEAP
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 37e0a881..e226b395 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -459,7 +459,7 @@ function calcAllocatedSize(type, TYPES) { if (pointingLevels(type) == 0 && isStructType(type)) { return TYPES[type].flatSize; // makeEmptyStruct(item.allocatedType).length; } else { - return 1; + return getNativeFieldSize(type, true); // We can really get away with '1', though, at least on the stack... } } |