Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Side by Side Diff: src/compiler/js-native-context-specialization.cc

Issue 2415183002: Merged: [turbofan] Fix effect chain for polymorphic array access. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-655004.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-655004.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698