aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-20 23:27:59 -0700
committeralon@honor <none@none>2010-10-20 23:27:59 -0700
commitdb0bb3be253387c481774a393aae6f1034d1a990 (patch)
tree9b5de8a02e84d531091dcfbef9136471d4579100 /src/analyzer.js
parent5f4f3fe49a065a7e5ccbc9116e8d966f37e3516a (diff)
dynamic stack allocation support; demangler test closer to passing
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index e7f0dfff..eb9ad555 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -333,6 +333,7 @@ function analyzer(data) {
var line = lines[i];
var item = line.value;
if (!item || item.intertype != 'alloca') continue;
+ assert(item.allocatedNum === 1);
item.allocatedSize = func.variables[line.ident].impl === VAR_EMULATED ?
calcAllocatedSize(item.allocatedType, data.types) : 0;
total += item.allocatedSize;