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-inl.h" |
12 #include "src/compiler/js-graph.h" | 12 #include "src/compiler/js-graph.h" |
13 #include "src/compiler/node-properties-inl.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 |
22 // TODO(titzer): convert this whole file into unit tests. | 22 // TODO(titzer): convert this whole file into unit tests. |
23 | 23 |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 | 1506 |
1507 Node* ret = R.Return(d1.phi, R.start, d1.merge); | 1507 Node* ret = R.Return(d1.phi, R.start, d1.merge); |
1508 | 1508 |
1509 R.ReduceGraph(); // d1 gets folded true. | 1509 R.ReduceGraph(); // d1 gets folded true. |
1510 | 1510 |
1511 CheckInputs(ret, y2, R.start, R.start); | 1511 CheckInputs(ret, y2, R.start, R.start); |
1512 CheckDeadDiamond(d1); | 1512 CheckDeadDiamond(d1); |
1513 CheckDeadDiamond(d2); | 1513 CheckDeadDiamond(d2); |
1514 CheckDeadDiamond(d3); | 1514 CheckDeadDiamond(d3); |
1515 } | 1515 } |
OLD | NEW |