Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: src/hydrogen-escape-analysis.h

Issue 18476004: Turn escape analysis into a proper HPhase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-escape-analysis.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-escape-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698