| 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 #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/generic-node-inl.h" | |
| 10 #include "src/compiler/generic-node.h" | |
| 11 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 12 #include "src/compiler/graph-visualizer.h" | 10 #include "src/compiler/graph-visualizer.h" |
| 13 #include "src/compiler/js-operator.h" | 11 #include "src/compiler/js-operator.h" |
| 14 #include "src/compiler/machine-operator.h" | 12 #include "src/compiler/machine-operator.h" |
| 15 #include "src/compiler/node.h" | 13 #include "src/compiler/node.h" |
| 16 #include "src/compiler/operator.h" | 14 #include "src/compiler/operator.h" |
| 17 #include "src/compiler/schedule.h" | 15 #include "src/compiler/schedule.h" |
| 18 #include "src/compiler/scheduler.h" | 16 #include "src/compiler/scheduler.h" |
| 19 #include "src/compiler/verifier.h" | 17 #include "src/compiler/verifier.h" |
| 20 | 18 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 Node* start = graph.NewNode(common.Start(0)); | 81 Node* start = graph.NewNode(common.Start(0)); |
| 84 graph.SetStart(start); | 82 graph.SetStart(start); |
| 85 Node* merge = graph.NewNode(common.Merge(2), start, start); | 83 Node* merge = graph.NewNode(common.Merge(2), start, start); |
| 86 merge->ReplaceInput(1, NULL); | 84 merge->ReplaceInput(1, NULL); |
| 87 graph.SetEnd(merge); | 85 graph.SetEnd(merge); |
| 88 | 86 |
| 89 OFStream os(stdout); | 87 OFStream os(stdout); |
| 90 os << AsDOT(graph); | 88 os << AsDOT(graph); |
| 91 os << AsJSON(graph); | 89 os << AsJSON(graph); |
| 92 } | 90 } |
| OLD | NEW |