OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast-loop-assignment-analyzer.h" | 5 #include "src/compiler/ast-loop-assignment-analyzer.h" |
6 #include "src/ast/scopes.h" | 6 #include "src/ast/scopes.h" |
7 #include "src/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/objects-inl.h" | 8 #include "src/objects-inl.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 | 197 |
198 | 198 |
199 void ALAA::VisitSpread(Spread* e) { UNREACHABLE(); } | 199 void ALAA::VisitSpread(Spread* e) { UNREACHABLE(); } |
200 | 200 |
201 | 201 |
202 void ALAA::VisitEmptyParentheses(EmptyParentheses* e) { UNREACHABLE(); } | 202 void ALAA::VisitEmptyParentheses(EmptyParentheses* e) { UNREACHABLE(); } |
203 | 203 |
204 void ALAA::VisitGetIterator(GetIterator* e) { UNREACHABLE(); } | 204 void ALAA::VisitGetIterator(GetIterator* e) { UNREACHABLE(); } |
205 | 205 |
| 206 void ALAA::VisitImportCallExpression(ImportCallExpression* e) { UNREACHABLE(); } |
| 207 |
206 void ALAA::VisitCaseClause(CaseClause* cc) { | 208 void ALAA::VisitCaseClause(CaseClause* cc) { |
207 if (!cc->is_default()) Visit(cc->label()); | 209 if (!cc->is_default()) Visit(cc->label()); |
208 VisitStatements(cc->statements()); | 210 VisitStatements(cc->statements()); |
209 } | 211 } |
210 | 212 |
211 | 213 |
212 void ALAA::VisitSloppyBlockFunctionStatement( | 214 void ALAA::VisitSloppyBlockFunctionStatement( |
213 SloppyBlockFunctionStatement* stmt) { | 215 SloppyBlockFunctionStatement* stmt) { |
214 Visit(stmt->statement()); | 216 Visit(stmt->statement()); |
215 } | 217 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 int count = 0; | 313 int count = 0; |
312 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var); | 314 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var); |
313 for (size_t i = 0; i < list_.size(); i++) { | 315 for (size_t i = 0; i < list_.size(); i++) { |
314 if (list_[i].second->Contains(var_index)) count++; | 316 if (list_[i].second->Contains(var_index)) count++; |
315 } | 317 } |
316 return count; | 318 return count; |
317 } | 319 } |
318 } // namespace compiler | 320 } // namespace compiler |
319 } // namespace internal | 321 } // namespace internal |
320 } // namespace v8 | 322 } // namespace v8 |
OLD | NEW |