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/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/control-reducer.h" | 10 #include "src/compiler/control-reducer.h" |
11 #include "src/compiler/graph-inl.h" | 11 #include "src/compiler/graph.h" |
12 #include "src/compiler/js-graph.h" | 12 #include "src/compiler/js-graph.h" |
13 #include "src/compiler/node-properties.h" | 13 #include "src/compiler/node-properties.h" |
14 | 14 |
15 using namespace v8::internal; | 15 using namespace v8::internal; |
16 using namespace v8::internal::compiler; | 16 using namespace v8::internal::compiler; |
17 | 17 |
18 static const size_t kNumLeafs = 4; | 18 static const size_t kNumLeafs = 4; |
19 | 19 |
20 enum Decision { kFalse, kUnknown, kTrue }; | 20 enum Decision { kFalse, kUnknown, kTrue }; |
21 | 21 |
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 | 1510 |
1511 Node* ret = R.Return(d1.phi, R.start, d1.merge); | 1511 Node* ret = R.Return(d1.phi, R.start, d1.merge); |
1512 | 1512 |
1513 R.ReduceGraph(); // d1 gets folded true. | 1513 R.ReduceGraph(); // d1 gets folded true. |
1514 | 1514 |
1515 CheckInputs(ret, y2, R.start, R.start); | 1515 CheckInputs(ret, y2, R.start, R.start); |
1516 CheckDeadDiamond(d1); | 1516 CheckDeadDiamond(d1); |
1517 CheckDeadDiamond(d2); | 1517 CheckDeadDiamond(d2); |
1518 CheckDeadDiamond(d3); | 1518 CheckDeadDiamond(d3); |
1519 } | 1519 } |
OLD | NEW |