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) { |