aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-05 12:24:46 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-06 10:26:10 -0800
commit33cdfe5819e789cb9a98b8b7f66447ceab861f84 (patch)
tree602ae78dc7437a1cd3d87b6bb46dcb598416d9e6 /src/analyzer.js
parent13b82208767b3af7a8716356c07b6eac26da5ac3 (diff)
split js compiler into three passes, to facilitate future parallization
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 1849b58d..a6a37400 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -1346,6 +1346,14 @@ function analyzer(data, sidePass) {
}
});
});
+
+ if (func.ident in NECESSARY_BLOCKADDRS) {
+ Functions.blockAddresses[func.ident] = {};
+ for (var needed in NECESSARY_BLOCKADDRS[func.ident]) {
+ assert(needed in func.labelIds);
+ Functions.blockAddresses[func.ident][needed] = func.labelIds[needed];
+ }
+ }
});
this.forwardItem(item, 'StackAnalyzer');
}