Index: test/cctest/compiler/test-graph-visualizer.cc |
diff --git a/test/cctest/compiler/test-graph-visualizer.cc b/test/cctest/compiler/test-graph-visualizer.cc |
index 2d6338d06059305f1cbd23c4631f99ea2091afb5..19228fa2f0664bd3b9472d3ac5291f98c77efffd 100644 |
--- a/test/cctest/compiler/test-graph-visualizer.cc |
+++ b/test/cctest/compiler/test-graph-visualizer.cc |
@@ -20,8 +20,10 @@ |
using namespace v8::internal; |
using namespace v8::internal::compiler; |
-static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, |
- "dummy", 0, 0, 0, 1, 0, 0); |
+static Operator dummy_operator1(IrOpcode::kParameter, Operator::kNoWrite, |
+ "dummy", 1, 0, 0, 1, 0, 0); |
+static Operator dummy_operator6(IrOpcode::kParameter, Operator::kNoWrite, |
+ "dummy", 6, 0, 0, 1, 0, 0); |
TEST(NodeWithNullInputReachableFromEnd) { |
@@ -106,18 +108,18 @@ TEST(NodeNetworkOfDummiesReachableFromEnd) { |
Node* start = graph.NewNode(common.Start(0)); |
graph.SetStart(start); |
- Node* n2 = graph.NewNode(&dummy_operator, graph.start()); |
- Node* n3 = graph.NewNode(&dummy_operator, graph.start()); |
- Node* n4 = graph.NewNode(&dummy_operator, n2); |
- Node* n5 = graph.NewNode(&dummy_operator, n2); |
- Node* n6 = graph.NewNode(&dummy_operator, n3); |
- Node* n7 = graph.NewNode(&dummy_operator, n3); |
- Node* n8 = graph.NewNode(&dummy_operator, n5); |
- Node* n9 = graph.NewNode(&dummy_operator, n5); |
- Node* n10 = graph.NewNode(&dummy_operator, n9); |
- Node* n11 = graph.NewNode(&dummy_operator, n9); |
+ Node* n2 = graph.NewNode(&dummy_operator1, graph.start()); |
+ Node* n3 = graph.NewNode(&dummy_operator1, graph.start()); |
+ Node* n4 = graph.NewNode(&dummy_operator1, n2); |
+ Node* n5 = graph.NewNode(&dummy_operator1, n2); |
+ Node* n6 = graph.NewNode(&dummy_operator1, n3); |
+ Node* n7 = graph.NewNode(&dummy_operator1, n3); |
+ Node* n8 = graph.NewNode(&dummy_operator1, n5); |
+ Node* n9 = graph.NewNode(&dummy_operator1, n5); |
+ Node* n10 = graph.NewNode(&dummy_operator1, n9); |
+ Node* n11 = graph.NewNode(&dummy_operator1, n9); |
Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; |
- Node* end = graph.NewNode(&dummy_operator, 6, end_dependencies); |
+ Node* end = graph.NewNode(&dummy_operator6, 6, end_dependencies); |
graph.SetEnd(end); |
OFStream os(stdout); |