Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index b03bf699389be7864587415c6143280159f27979..0b6052ed6537cd83d0f37b88f3a4a71563582b84 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -26,7 +26,6 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
#include "hydrogen.h" |
-#include "hydrogen-gvn.h" |
#include <algorithm> |
@@ -35,6 +34,8 @@ |
#include "full-codegen.h" |
#include "hashmap.h" |
#include "hydrogen-environment-liveness.h" |
+#include "hydrogen-escape-analysis.h" |
+#include "hydrogen-gvn.h" |
#include "lithium-allocator.h" |
#include "parser.h" |
#include "scopeinfo.h" |
@@ -4029,11 +4030,16 @@ bool HGraph::Optimize(SmartArrayPointer<char>* bailout_reason) { |
if (FLAG_use_canonicalizing) Canonicalize(); |
+ if (FLAG_use_escape_analysis) { |
+ HEscapeAnalysis escape_analysis(this); |
+ escape_analysis.Analyze(); |
+ } |
+ |
if (FLAG_use_gvn) GlobalValueNumbering(); |
if (FLAG_use_range) { |
- HRangeAnalysis rangeAnalysis(this); |
- rangeAnalysis.Analyze(); |
+ HRangeAnalysis range_analysis(this); |
+ range_analysis.Analyze(); |
} |
ComputeMinusZeroChecks(); |