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

Unified Diff: test/cctest/compiler/test-phi-reducer.cc

Issue 437183002: Make start node a value input to parameter nodes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add start node as input to parameter nodes. Created 6 years, 4 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
Index: test/cctest/compiler/test-phi-reducer.cc
diff --git a/test/cctest/compiler/test-phi-reducer.cc b/test/cctest/compiler/test-phi-reducer.cc
index 55600402983010add7c699646aec1180ed2564ab..00e250d8a2a63956f1a2e58a6cf71d55dc40cd7b 100644
--- a/test/cctest/compiler/test-phi-reducer.cc
+++ b/test/cctest/compiler/test-phi-reducer.cc
@@ -14,12 +14,14 @@ using namespace v8::internal::compiler;
class PhiReducerTester : HandleAndZoneScope {
public:
- PhiReducerTester()
+ explicit PhiReducerTester(int num_parameters = 0)
: isolate(main_isolate()),
common(main_zone()),
graph(main_zone()),
- self(graph.NewNode(common.Start())),
- dead(graph.NewNode(common.Dead())) {}
+ self(graph.NewNode(common.Start(num_parameters))),
+ dead(graph.NewNode(common.Dead())) {
+ graph.SetStart(self);
+ }
Isolate* isolate;
CommonOperatorBuilder common;
@@ -47,7 +49,7 @@ class PhiReducerTester : HandleAndZoneScope {
}
Node* Parameter(int32_t index = 0) {
- return graph.NewNode(common.Parameter(index));
+ return graph.NewNode(common.Parameter(index), graph.start());
}
Node* Phi(Node* a) {
« no previous file with comments | « test/cctest/compiler/test-machine-operator-reducer.cc ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698