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

Side by Side Diff: src/ast/ast-numbering.cc

Issue 2525243002: [compiler] Consistently use Ignition+TurboFan for lexical variables. (Closed)
Patch Set: REBASE Created 4 years 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 | src/bailout-reason.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/ast/ast-numbering.h" 5 #include "src/ast/ast-numbering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 case VariableLocation::LOOKUP: 151 case VariableLocation::LOOKUP:
152 DisableFullCodegenAndCrankshaft( 152 DisableFullCodegenAndCrankshaft(
153 kReferenceToAVariableWhichRequiresDynamicLookup); 153 kReferenceToAVariableWhichRequiresDynamicLookup);
154 break; 154 break;
155 case VariableLocation::MODULE: 155 case VariableLocation::MODULE:
156 DisableFullCodegenAndCrankshaft(kReferenceToModuleVariable); 156 DisableFullCodegenAndCrankshaft(kReferenceToModuleVariable);
157 break; 157 break;
158 default: 158 default:
159 break; 159 break;
160 } 160 }
161 if (IsLexicalVariableMode(node->var()->mode())) {
adamk 2016/12/05 20:47:31 As noted on the other CL (fixing a perf regression
Benedikt Meurer 2016/12/06 05:10:48 Ah perfect, thanks a lot Adam for the investigatio
162 DisableFullCodegenAndCrankshaft(kReferenceToLetOrConstVariable);
163 }
161 node->set_base_id(ReserveIdRange(VariableProxy::num_ids())); 164 node->set_base_id(ReserveIdRange(VariableProxy::num_ids()));
162 } 165 }
163 166
164 167
165 void AstNumberingVisitor::VisitVariableProxy(VariableProxy* node) { 168 void AstNumberingVisitor::VisitVariableProxy(VariableProxy* node) {
166 VisitVariableProxyReference(node); 169 VisitVariableProxyReference(node);
167 ReserveFeedbackSlots(node); 170 ReserveFeedbackSlots(node);
168 } 171 }
169 172
170 173
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 } 619 }
617 620
618 621
619 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 622 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
620 FunctionLiteral* function) { 623 FunctionLiteral* function) {
621 AstNumberingVisitor visitor(isolate, zone); 624 AstNumberingVisitor visitor(isolate, zone);
622 return visitor.Renumber(function); 625 return visitor.Renumber(function);
623 } 626 }
624 } // namespace internal 627 } // namespace internal
625 } // namespace v8 628 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698