Index: src/crankshaft/hydrogen-escape-analysis.cc |
diff --git a/src/crankshaft/hydrogen-escape-analysis.cc b/src/crankshaft/hydrogen-escape-analysis.cc |
index 6128fbc973a1dfd8860e3b6cffcec77ecaf6edd8..ab3bff2edcd37a36c1407c44354b990d70a04f69 100644 |
--- a/src/crankshaft/hydrogen-escape-analysis.cc |
+++ b/src/crankshaft/hydrogen-escape-analysis.cc |
@@ -142,6 +142,7 @@ HValue* HEscapeAnalysisPhase::NewMapCheckAndInsert(HCapturedObject* state, |
// necessary. |
HValue* HEscapeAnalysisPhase::NewLoadReplacement( |
HLoadNamedField* load, HValue* load_value) { |
+ isolate()->counters()->crankshaft_escape_loads_replaced()->Increment(); |
HValue* replacement = load_value; |
Representation representation = load->representation(); |
if (representation.IsSmiOrInteger32() || representation.IsDouble()) { |
@@ -319,6 +320,8 @@ void HEscapeAnalysisPhase::Run() { |
for (int i = 0; i < max_fixpoint_iteration_count; i++) { |
CollectCapturedValues(); |
if (captured_.is_empty()) break; |
+ isolate()->counters()->crankshaft_escape_allocs_replaced()->Increment( |
+ captured_.length()); |
PerformScalarReplacement(); |
captured_.Rewind(0); |
} |