diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-05 12:24:46 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-06 10:26:10 -0800 |
commit | 33cdfe5819e789cb9a98b8b7f66447ceab861f84 (patch) | |
tree | 602ae78dc7437a1cd3d87b6bb46dcb598416d9e6 /src/analyzer.js | |
parent | 13b82208767b3af7a8716356c07b6eac26da5ac3 (diff) |
split js compiler into three passes, to facilitate future parallization
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 8 |
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'); } |