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

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

Issue 1424943004: Move compiler cctests into v8::internal::compiler namespace. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « test/cctest/compiler/test-gap-resolver.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TODO(jochen): Remove this after the setting is turned on globally. 5 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
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 #include "test/cctest/cctest.h" 19 #include "test/cctest/cctest.h"
20 20
21 using namespace v8::internal; 21 namespace v8 {
22 using namespace v8::internal::compiler; 22 namespace internal {
23 namespace compiler {
23 24
24 static Operator dummy_operator1(IrOpcode::kParameter, Operator::kNoWrite, 25 static Operator dummy_operator1(IrOpcode::kParameter, Operator::kNoWrite,
25 "dummy", 1, 0, 0, 1, 0, 0); 26 "dummy", 1, 0, 0, 1, 0, 0);
26 static Operator dummy_operator6(IrOpcode::kParameter, Operator::kNoWrite, 27 static Operator dummy_operator6(IrOpcode::kParameter, Operator::kNoWrite,
27 "dummy", 6, 0, 0, 1, 0, 0); 28 "dummy", 6, 0, 0, 1, 0, 0);
28 29
29 30
30 TEST(NodeWithNullInputReachableFromEnd) { 31 TEST(NodeWithNullInputReachableFromEnd) {
31 HandleAndZoneScope scope; 32 HandleAndZoneScope scope;
32 Graph graph(scope.main_zone()); 33 Graph graph(scope.main_zone());
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 Node* n11 = graph.NewNode(&dummy_operator1, n9); 122 Node* n11 = graph.NewNode(&dummy_operator1, n9);
122 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; 123 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7};
123 Node* end = graph.NewNode(&dummy_operator6, 6, end_dependencies); 124 Node* end = graph.NewNode(&dummy_operator6, 6, end_dependencies);
124 graph.SetEnd(end); 125 graph.SetEnd(end);
125 126
126 OFStream os(stdout); 127 OFStream os(stdout);
127 os << AsDOT(graph); 128 os << AsDOT(graph);
128 SourcePositionTable table(&graph); 129 SourcePositionTable table(&graph);
129 os << AsJSON(graph, &table); 130 os << AsJSON(graph, &table);
130 } 131 }
132
133 } // namespace compiler
134 } // namespace internal
135 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-gap-resolver.cc ('k') | test/cctest/compiler/test-instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698