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

Unified Diff: src/hydrogen.h

Issue 17587008: Refactor Hydrogen environment liveness analysis into an HPhase. (Closed) Base URL: git@github.com:v8/v8.git@master
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 | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen-environment-liveness.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 6a49e5708de953eb5cb74e88906afe9526c18b79..63f38ce917ea6ee80d11ec362c4bdf4fd119eaf4 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -428,6 +428,8 @@ class HGraph: public ZoneObject {
HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
int32_t integer_value);
+ template<typename Phase>
+ void Run() { Phase phase(this, info()->phase_zone()); phase.Run(); }
void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist);
void MarkLiveInstructions();
void RemoveDeadInstructions();
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen-environment-liveness.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698