| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 50882a8a7f899e657076b55d7be7a1feedbcc191..193b5f1204833ba5e8680e64df899556cf89b24b 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -36,6 +36,7 @@
|
| #include "hydrogen-bce.h"
|
| #include "hydrogen-bch.h"
|
| #include "hydrogen-canonicalize.h"
|
| +#include "hydrogen-check-elimination.h"
|
| #include "hydrogen-dce.h"
|
| #include "hydrogen-dehoist.h"
|
| #include "hydrogen-deoptimizing-mark.h"
|
| @@ -2988,9 +2989,8 @@ bool HGraph::Optimize(BailoutReason* bailout_reason) {
|
| return false;
|
| }
|
|
|
| - // Remove dead code and phis
|
| + if (FLAG_check_elimination) Run<HCheckEliminationPhase>();
|
| if (FLAG_dead_code_elimination) Run<HDeadCodeEliminationPhase>();
|
| -
|
| if (FLAG_use_escape_analysis) Run<HEscapeAnalysisPhase>();
|
|
|
| if (FLAG_load_elimination) Run<HLoadEliminationPhase>();
|
| @@ -3028,12 +3028,8 @@ bool HGraph::Optimize(BailoutReason* bailout_reason) {
|
| // Eliminate redundant stack checks on backwards branches.
|
| Run<HStackCheckEliminationPhase>();
|
|
|
| - if (FLAG_array_bounds_checks_elimination) {
|
| - Run<HBoundsCheckEliminationPhase>();
|
| - }
|
| - if (FLAG_array_bounds_checks_hoisting) {
|
| - Run<HBoundsCheckHoistingPhase>();
|
| - }
|
| + if (FLAG_array_bounds_checks_elimination) Run<HBoundsCheckEliminationPhase>();
|
| + if (FLAG_array_bounds_checks_hoisting) Run<HBoundsCheckHoistingPhase>();
|
| if (FLAG_array_index_dehoisting) Run<HDehoistIndexComputationsPhase>();
|
| if (FLAG_dead_code_elimination) Run<HDeadCodeEliminationPhase>();
|
|
|
|
|