OLD | NEW |
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 // 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 <functional> | 8 #include <functional> |
9 | 9 |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
11 #include "src/compiler/node.h" | 11 #include "src/compiler/node.h" |
12 #include "src/compiler/operator.h" | 12 #include "src/compiler/operator.h" |
13 #include "test/cctest/cctest.h" | 13 #include "test/cctest/cctest.h" |
14 | 14 |
15 using namespace v8::internal; | 15 namespace v8 { |
16 using namespace v8::internal::compiler; | 16 namespace internal { |
| 17 namespace compiler { |
17 | 18 |
18 #define NONE reinterpret_cast<Node*>(1) | 19 #define NONE reinterpret_cast<Node*>(1) |
19 | 20 |
20 static Operator dummy_operator0(IrOpcode::kParameter, Operator::kNoWrite, | 21 static Operator dummy_operator0(IrOpcode::kParameter, Operator::kNoWrite, |
21 "dummy", 0, 0, 0, 1, 0, 0); | 22 "dummy", 0, 0, 0, 1, 0, 0); |
22 static Operator dummy_operator1(IrOpcode::kParameter, Operator::kNoWrite, | 23 static Operator dummy_operator1(IrOpcode::kParameter, Operator::kNoWrite, |
23 "dummy", 1, 0, 0, 1, 0, 0); | 24 "dummy", 1, 0, 0, 1, 0, 0); |
24 static Operator dummy_operator2(IrOpcode::kParameter, Operator::kNoWrite, | 25 static Operator dummy_operator2(IrOpcode::kParameter, Operator::kNoWrite, |
25 "dummy", 2, 0, 0, 1, 0, 0); | 26 "dummy", 2, 0, 0, 1, 0, 0); |
26 static Operator dummy_operator3(IrOpcode::kParameter, Operator::kNoWrite, | 27 static Operator dummy_operator3(IrOpcode::kParameter, Operator::kNoWrite, |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 CheckInputs(last, nodes, i); | 779 CheckInputs(last, nodes, i); |
779 | 780 |
780 for (int j = 0; j < i; j++) { | 781 for (int j = 0; j < i; j++) { |
781 if (j < i) CHECK_USES(nodes[j], last); | 782 if (j < i) CHECK_USES(nodes[j], last); |
782 if (j >= i) CHECK_USES(nodes[j], NONE); | 783 if (j >= i) CHECK_USES(nodes[j], NONE); |
783 } | 784 } |
784 | 785 |
785 CHECK_USES(last, NONE); | 786 CHECK_USES(last, NONE); |
786 } | 787 } |
787 } | 788 } |
| 789 |
| 790 } // namespace compiler |
| 791 } // namespace internal |
| 792 } // namespace v8 |
OLD | NEW |