48
48
import com .google .javascript .jscomp .CompilerOptions .JsonStreamMode ;
49
49
import com .google .javascript .jscomp .CompilerOptions .OutputJs ;
50
50
import com .google .javascript .jscomp .CompilerOptions .TweakProcessing ;
51
+ import com .google .javascript .jscomp .PassConfig .OptimizationPasses ;
51
52
import com .google .javascript .jscomp .deps .ModuleLoader ;
52
53
import com .google .javascript .jscomp .deps .SourceCodeEscapers ;
53
54
import com .google .javascript .jscomp .ijs .IjsErrors ;
@@ -1386,7 +1387,7 @@ private Result restoreTypedAstsPerformStage2AndSave(
1386
1387
try {
1387
1388
if (!compiler .hasErrors ()) {
1388
1389
metricsRecorder .recordStartState (compiler );
1389
- compiler .stage2Passes ();
1390
+ compiler .stage2Passes (OptimizationPasses . ALL );
1390
1391
if (!compiler .hasErrors ()) {
1391
1392
try (BufferedOutputStream serializedOutputStream =
1392
1393
new BufferedOutputStream (new FileOutputStream (outputFilename ))) {
@@ -1411,7 +1412,7 @@ private Result restoreTypedAstsPerformStages2and3(
1411
1412
try {
1412
1413
if (!compiler .hasErrors ()) {
1413
1414
metricsRecorder .recordStartState (compiler );
1414
- compiler .stage2Passes ();
1415
+ compiler .stage2Passes (OptimizationPasses . ALL );
1415
1416
if (!compiler .hasErrors ()) {
1416
1417
compiler .stage3Passes ();
1417
1418
}
@@ -1435,7 +1436,7 @@ private Result restoreAndPerformStage2AndSave(
1435
1436
compiler .restoreState (serializedInputStream );
1436
1437
if (!compiler .hasErrors ()) {
1437
1438
metricsRecorder .recordStartState (compiler );
1438
- compiler .stage2Passes ();
1439
+ compiler .stage2Passes (OptimizationPasses . ALL );
1439
1440
if (!compiler .hasErrors ()) {
1440
1441
try (BufferedOutputStream serializedOutputStream =
1441
1442
new BufferedOutputStream (new FileOutputStream (outputFilename ))) {
@@ -1465,7 +1466,7 @@ private Result restoreAndPerformStages2and3(
1465
1466
compiler .restoreState (serializedInputStream );
1466
1467
if (!compiler .hasErrors ()) {
1467
1468
metricsRecorder .recordStartState (compiler );
1468
- compiler .stage2Passes ();
1469
+ compiler .stage2Passes (OptimizationPasses . ALL );
1469
1470
if (!compiler .hasErrors ()) {
1470
1471
compiler .stage3Passes ();
1471
1472
}
@@ -1513,7 +1514,7 @@ private Result performFullCompilation(CompileMetricsRecorderInterface metricsRec
1513
1514
metricsRecorder .recordStartState (compiler );
1514
1515
compiler .stage1Passes ();
1515
1516
if (!compiler .hasErrors ()) {
1516
- compiler .stage2Passes ();
1517
+ compiler .stage2Passes (OptimizationPasses . ALL );
1517
1518
if (!compiler .hasErrors ()) {
1518
1519
compiler .stage3Passes ();
1519
1520
}
0 commit comments