Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 04debfadde9524bed82687b48142191ea8d538fc..0fe0173428534f77253488f03cd10dea7049f436 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3962,9 +3962,8 @@ bool HGraph::Optimize(SmartArrayPointer<char>* bailout_reason) { |
Verify(true); |
#endif |
- if (FLAG_analyze_environment_liveness) { |
- EnvironmentSlotLivenessAnalyzer esla(this); |
- esla.AnalyzeAndTrim(); |
+ if (FLAG_analyze_environment_liveness && maximum_environment_size() != 0) { |
+ Run<HEnvironmentLivenessAnalysisPhase>(); |
} |
PropagateDeoptimizingMark(); |