aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-29 11:32:16 -0500
committerAlon Zakai <alonzakai@gmail.com>2012-12-29 11:32:16 -0500
commit15e19544fadfbeba159a0f0310fe1f92ae5fdd0c (patch)
tree7df72961d3cc54bba8f80e63d0d3184b8e494277 /src
parent44f145686d4bac8307687f45194e0003babb7018 (diff)
save legalizedI64 state for multiphase compilation
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 25e79be7..70329b3f 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1310,6 +1310,7 @@ function JSify(data, functionsOnly, givenFunctions) {
// Print out global variables and postsets TODO: batching
if (phase == 'pre') {
+ var legalizedI64sDefault = legalizedI64s;
legalizedI64s = false;
var globalsData = analyzer(intertyper(data.unparsedGlobalss[0].lines, true), true);
@@ -1332,6 +1333,8 @@ function JSify(data, functionsOnly, givenFunctions) {
var generated = itemsDict.functionStub.concat(itemsDict.GlobalVariablePostSet);
generated.forEach(function(item) { print(indentify(item.JS || '', 2)); });
+
+ legalizedI64s = legalizedI64sDefault;
} else {
if (singlePhase) {
assert(data.unparsedGlobalss[0].lines.length == 0, dump([phase, data.unparsedGlobalss]));