| OLD | NEW |
| 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. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
| 5 #include "src/v8.h" | 8 #include "src/v8.h" |
| 6 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
| 7 | 10 |
| 8 #include "src/compiler/common-operator.h" | 11 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph.h" | 12 #include "src/compiler/graph.h" |
| 10 #include "src/compiler/graph-visualizer.h" | 13 #include "src/compiler/graph-visualizer.h" |
| 11 #include "src/compiler/js-operator.h" | 14 #include "src/compiler/js-operator.h" |
| 12 #include "src/compiler/machine-operator.h" | 15 #include "src/compiler/machine-operator.h" |
| 13 #include "src/compiler/node.h" | 16 #include "src/compiler/node.h" |
| 14 #include "src/compiler/operator.h" | 17 #include "src/compiler/operator.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 Node* n11 = graph.NewNode(&dummy_operator1, n9); | 123 Node* n11 = graph.NewNode(&dummy_operator1, n9); |
| 121 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; | 124 Node* end_dependencies[6] = {n4, n8, n10, n11, n6, n7}; |
| 122 Node* end = graph.NewNode(&dummy_operator6, 6, end_dependencies); | 125 Node* end = graph.NewNode(&dummy_operator6, 6, end_dependencies); |
| 123 graph.SetEnd(end); | 126 graph.SetEnd(end); |
| 124 | 127 |
| 125 OFStream os(stdout); | 128 OFStream os(stdout); |
| 126 os << AsDOT(graph); | 129 os << AsDOT(graph); |
| 127 SourcePositionTable table(&graph); | 130 SourcePositionTable table(&graph); |
| 128 os << AsJSON(graph, &table); | 131 os << AsJSON(graph, &table); |
| 129 } | 132 } |
| OLD | NEW |