| 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/js-native-context-specialization.h" | 5 #include "src/compiler/js-native-context-specialization.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
| 10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 check = graph()->NewNode(simplified()->CheckIf(), check, | 607 check = graph()->NewNode(simplified()->CheckIf(), check, |
| 608 this_effect, this_control); | 608 this_effect, this_control); |
| 609 this_controls.push_back(this_control); | 609 this_controls.push_back(this_control); |
| 610 this_effects.push_back(check); | 610 this_effects.push_back(check); |
| 611 fallthrough_control = nullptr; | 611 fallthrough_control = nullptr; |
| 612 } else { | 612 } else { |
| 613 Node* branch = graph()->NewNode(common()->Branch(), check, | 613 Node* branch = graph()->NewNode(common()->Branch(), check, |
| 614 fallthrough_control); | 614 fallthrough_control); |
| 615 this_controls.push_back( | 615 this_controls.push_back( |
| 616 graph()->NewNode(common()->IfTrue(), branch)); | 616 graph()->NewNode(common()->IfTrue(), branch)); |
| 617 this_effects.push_back(effect); | 617 this_effects.push_back(this_effect); |
| 618 fallthrough_control = | 618 fallthrough_control = |
| 619 graph()->NewNode(common()->IfFalse(), branch); | 619 graph()->NewNode(common()->IfFalse(), branch); |
| 620 } | 620 } |
| 621 } | 621 } |
| 622 | 622 |
| 623 // Create single chokepoint for the control. | 623 // Create single chokepoint for the control. |
| 624 int const this_control_count = static_cast<int>(this_controls.size()); | 624 int const this_control_count = static_cast<int>(this_controls.size()); |
| 625 if (this_control_count == 1) { | 625 if (this_control_count == 1) { |
| 626 this_control = this_controls.front(); | 626 this_control = this_controls.front(); |
| 627 this_effect = this_effects.front(); | 627 this_effect = this_effects.front(); |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 } | 1529 } |
| 1530 | 1530 |
| 1531 | 1531 |
| 1532 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 1532 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
| 1533 return jsgraph()->simplified(); | 1533 return jsgraph()->simplified(); |
| 1534 } | 1534 } |
| 1535 | 1535 |
| 1536 } // namespace compiler | 1536 } // namespace compiler |
| 1537 } // namespace internal | 1537 } // namespace internal |
| 1538 } // namespace v8 | 1538 } // namespace v8 |
| OLD | NEW |