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

Side by Side Diff: test/cctest/compiler/test-node-algorithm.cc

Issue 756073004: De-generify the GenericNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation on Windows. Created 6 years 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-node.cc ('k') | test/cctest/compiler/test-run-machops.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <vector> 5 #include <vector>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "graph-tester.h" 9 #include "graph-tester.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
11 #include "src/compiler/generic-node.h"
12 #include "src/compiler/generic-node-inl.h"
13 #include "src/compiler/graph.h" 11 #include "src/compiler/graph.h"
14 #include "src/compiler/graph-inl.h" 12 #include "src/compiler/graph-inl.h"
15 #include "src/compiler/graph-visualizer.h" 13 #include "src/compiler/graph-visualizer.h"
14 #include "src/compiler/node.h"
16 #include "src/compiler/operator.h" 15 #include "src/compiler/operator.h"
17 16
18 using namespace v8::internal; 17 using namespace v8::internal;
19 using namespace v8::internal::compiler; 18 using namespace v8::internal::compiler;
20 19
21 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, 20 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite,
22 "dummy", 0, 0, 0, 1, 0, 0); 21 "dummy", 0, 0, 0, 1, 0, 0);
23 22
24 class PreNodeVisitor : public NullNodeVisitor { 23 class PreNodeVisitor : public NullNodeVisitor {
25 public: 24 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 Node* n9 = graph.NewNode(&dummy_operator, n5); 71 Node* n9 = graph.NewNode(&dummy_operator, n5);
73 Node* n10 = graph.NewNode(&dummy_operator, n9); 72 Node* n10 = graph.NewNode(&dummy_operator, n9);
74 Node* n11 = graph.NewNode(&dummy_operator, n9); 73 Node* n11 = graph.NewNode(&dummy_operator, n9);
75 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; 74 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7};
76 Node* n12 = graph.NewNode(&dummy_operator, 6, end_dependencies); 75 Node* n12 = graph.NewNode(&dummy_operator, 6, end_dependencies);
77 graph.SetEnd(n12); 76 graph.SetEnd(n12);
78 77
79 OFStream os(stdout); 78 OFStream os(stdout);
80 os << AsDOT(graph); 79 os << AsDOT(graph);
81 } 80 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-node.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698