Index: src/hydrogen-escape-analysis.h |
diff --git a/src/hydrogen-escape-analysis.h b/src/hydrogen-escape-analysis.h |
index 1d31f3dce7e789320c7fdd8439a9f11e1bb35236..6ba6e823c54f25f2ef4c45a13c9aedba37cfa566 100644 |
--- a/src/hydrogen-escape-analysis.h |
+++ b/src/hydrogen-escape-analysis.h |
@@ -35,19 +35,19 @@ namespace v8 { |
namespace internal { |
-class HEscapeAnalysis BASE_EMBEDDED { |
+class HEscapeAnalysisPhase : public HPhase { |
public: |
- explicit HEscapeAnalysis(HGraph* graph) |
- : graph_(graph), zone_(graph->zone()), captured_(0, zone_) { } |
+ explicit HEscapeAnalysisPhase(HGraph* graph) |
+ : HPhase("H_Escape analysis", graph), captured_(0, zone()) { } |
- void Analyze(); |
+ void Run() { |
+ CollectCapturedValues(); |
+ } |
private: |
void CollectCapturedValues(); |
void CollectIfNoEscapingUses(HInstruction* instr); |
- HGraph* graph_; |
- Zone* zone_; |
ZoneList<HValue*> captured_; |
}; |