You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//printErr('JS compiler in action, phase ' + phase);
250
+
// Do it
236
251
237
-
Debugging.handleMetadata(lines);
252
+
varintertyped=intertyper(lines);
253
+
if(singlePhase)lines=null;
254
+
varanalyzed=analyzer(intertyped);
255
+
intertyped=null;
256
+
JSify(analyzed);
238
257
239
-
if(phase!='pre'){
240
-
PassManager.load(read(forwardedDataFile));
258
+
phase=null;
241
259
242
-
if(phase=='funcs'){
243
-
PreProcessor.eliminateUnneededIntrinsics(lines);
260
+
if(DEBUG_MEMORY){
261
+
print('zzz. last gc: '+gc());
262
+
MemoryDebugger.dump();
263
+
print('zzz. hanging now!');
264
+
while(1){};
265
+
}
244
266
}
245
-
}
246
267
247
-
// Do it
268
+
// Normal operation is for each execution of compiler.js to run a single phase. The calling script sends us exactly the information we need, and it is easy to parallelize operation that way. However, it is also possible to run in an unoptimal multiphase mode, where a single invocation goes from ll to js directly. This is not recommended and will likely do a lot of duplicate processing.
0 commit comments