Permalink
Browse files

save legalizedI64 state for multiphase compilation

  • Loading branch information...
1 parent 44f1456 commit 15e19544fadfbeba159a0f0310fe1f92ae5fdd0c @kripken committed Dec 29, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/jsifier.js
View
@@ -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]));

0 comments on commit 15e1954

Please sign in to comment.