Index: test/cctest/compiler/test-machine-operator-reducer.cc |
diff --git a/test/cctest/compiler/test-machine-operator-reducer.cc b/test/cctest/compiler/test-machine-operator-reducer.cc |
index ab0855fd153fb251a50952982e9d4557654f136d..634e72e53b1d191d209079851328f1d1d56d6dc2 100644 |
--- a/test/cctest/compiler/test-machine-operator-reducer.cc |
+++ b/test/cctest/compiler/test-machine-operator-reducer.cc |
@@ -30,14 +30,17 @@ Operator* NewConstantOperator<double>(CommonOperatorBuilder* common, |
class ReducerTester : public HandleAndZoneScope { |
public: |
- ReducerTester() |
+ explicit ReducerTester(int num_parameters = 0) |
: isolate(main_isolate()), |
binop(NULL), |
unop(NULL), |
machine(main_zone()), |
common(main_zone()), |
graph(main_zone()), |
- maxuint32(Constant<int32_t>(kMaxUInt32)) {} |
+ maxuint32(Constant<int32_t>(kMaxUInt32)) { |
+ Node* s = graph.NewNode(common.Start(num_parameters)); |
+ graph.SetStart(s); |
+ } |
Isolate* isolate; |
Operator* binop; |
@@ -168,7 +171,7 @@ class ReducerTester : public HandleAndZoneScope { |
} |
Node* Parameter(int32_t index = 0) { |
- return graph.NewNode(common.Parameter(index)); |
+ return graph.NewNode(common.Parameter(index), graph.start()); |
} |
}; |