OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |