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

Side by Side Diff: test/cctest/compiler/test-graph-visualizer.cc

Issue 1163803002: Cosmetic changes to tests to make it easier to concatenate them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/graph-visualizer.h" 10 #include "src/compiler/graph-visualizer.h"
11 #include "src/compiler/js-operator.h" 11 #include "src/compiler/js-operator.h"
12 #include "src/compiler/machine-operator.h" 12 #include "src/compiler/machine-operator.h"
13 #include "src/compiler/node.h" 13 #include "src/compiler/node.h"
14 #include "src/compiler/operator.h" 14 #include "src/compiler/operator.h"
15 #include "src/compiler/schedule.h" 15 #include "src/compiler/schedule.h"
16 #include "src/compiler/scheduler.h" 16 #include "src/compiler/scheduler.h"
17 #include "src/compiler/source-position.h" 17 #include "src/compiler/source-position.h"
18 #include "src/compiler/verifier.h" 18 #include "src/compiler/verifier.h"
19 19
20 namespace test_graph_visualizer {
ulan 2015/06/01 13:08:24 Now some tests are namespaced and others are not.
Erik Corry 2015/06/01 15:15:47 test namespaces removed
21
20 using namespace v8::internal; 22 using namespace v8::internal;
21 using namespace v8::internal::compiler; 23 using namespace v8::internal::compiler;
22 24
23 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, 25 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite,
24 "dummy", 0, 0, 0, 1, 0, 0); 26 "dummy", 0, 0, 0, 1, 0, 0);
25 27
26 28
27 TEST(NodeWithNullInputReachableFromEnd) { 29 TEST(NodeWithNullInputReachableFromEnd) {
28 HandleAndZoneScope scope; 30 HandleAndZoneScope scope;
29 Graph graph(scope.main_zone()); 31 Graph graph(scope.main_zone());
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Node* n11 = graph.NewNode(&dummy_operator, n9); 120 Node* n11 = graph.NewNode(&dummy_operator, n9);
119 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; 121 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7};
120 Node* end = graph.NewNode(&dummy_operator, 6, end_dependencies); 122 Node* end = graph.NewNode(&dummy_operator, 6, end_dependencies);
121 graph.SetEnd(end); 123 graph.SetEnd(end);
122 124
123 OFStream os(stdout); 125 OFStream os(stdout);
124 os << AsDOT(graph); 126 os << AsDOT(graph);
125 SourcePositionTable table(&graph); 127 SourcePositionTable table(&graph);
126 os << AsJSON(graph, &table); 128 os << AsJSON(graph, &table);
127 } 129 }
130
131 } // namespace test_graph_visualizer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698