| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
| 6 #include "src/compiler/common-operator.h" | 6 #include "src/compiler/common-operator.h" |
| 7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
| 8 #include "src/compiler/graph-visualizer.h" | 8 #include "src/compiler/graph-visualizer.h" |
| 9 #include "src/compiler/js-operator.h" | 9 #include "src/compiler/js-operator.h" |
| 10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 | 748 |
| 749 Node* p0 = graph()->NewNode(common()->Parameter(0), start); | 749 Node* p0 = graph()->NewNode(common()->Parameter(0), start); |
| 750 | 750 |
| 751 Node* fv = graph()->NewNode(common()->Int32Constant(7)); | 751 Node* fv = graph()->NewNode(common()->Int32Constant(7)); |
| 752 Node* br = graph()->NewNode(common()->Branch(), p0, graph()->start()); | 752 Node* br = graph()->NewNode(common()->Branch(), p0, graph()->start()); |
| 753 Node* t = graph()->NewNode(common()->IfTrue(), br); | 753 Node* t = graph()->NewNode(common()->IfTrue(), br); |
| 754 Node* f = graph()->NewNode(common()->IfFalse(), br); | 754 Node* f = graph()->NewNode(common()->IfFalse(), br); |
| 755 | 755 |
| 756 Node* map = graph()->NewNode( | 756 Node* map = graph()->NewNode( |
| 757 simplified()->LoadElement(AccessBuilder::ForFixedArrayElement()), p0, p0, | 757 simplified()->LoadElement(AccessBuilder::ForFixedArrayElement()), p0, p0, |
| 758 p0, start, f); | 758 start, f); |
| 759 Node* br1 = graph()->NewNode(common()->Branch(), map, graph()->start()); | 759 Node* br1 = graph()->NewNode(common()->Branch(), map, graph()->start()); |
| 760 Node* t1 = graph()->NewNode(common()->IfTrue(), br1); | 760 Node* t1 = graph()->NewNode(common()->IfTrue(), br1); |
| 761 Node* f1 = graph()->NewNode(common()->IfFalse(), br1); | 761 Node* f1 = graph()->NewNode(common()->IfFalse(), br1); |
| 762 Node* m1 = graph()->NewNode(common()->Merge(2), t1, f1); | 762 Node* m1 = graph()->NewNode(common()->Merge(2), t1, f1); |
| 763 Node* ttrue = graph()->NewNode(common()->Int32Constant(1)); | 763 Node* ttrue = graph()->NewNode(common()->Int32Constant(1)); |
| 764 Node* ffalse = graph()->NewNode(common()->Int32Constant(0)); | 764 Node* ffalse = graph()->NewNode(common()->Int32Constant(0)); |
| 765 Node* phi1 = | 765 Node* phi1 = |
| 766 graph()->NewNode(common()->Phi(kMachAnyTagged, 2), ttrue, ffalse, m1); | 766 graph()->NewNode(common()->Phi(kMachAnyTagged, 2), ttrue, ffalse, m1); |
| 767 | 767 |
| 768 | 768 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 | 1160 |
| 1161 Schedule* schedule = ComputeAndVerifySchedule(6); | 1161 Schedule* schedule = ComputeAndVerifySchedule(6); |
| 1162 BasicBlock* block = schedule->block(loop); | 1162 BasicBlock* block = schedule->block(loop); |
| 1163 EXPECT_EQ(block, schedule->block(effect)); | 1163 EXPECT_EQ(block, schedule->block(effect)); |
| 1164 EXPECT_GE(block->rpo_number(), 0); | 1164 EXPECT_GE(block->rpo_number(), 0); |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 } // namespace compiler | 1167 } // namespace compiler |
| 1168 } // namespace internal | 1168 } // namespace internal |
| 1169 } // namespace v8 | 1169 } // namespace v8 |
| OLD | NEW |