| 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 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 Visit(e->left()); | 194 Visit(e->left()); |
| 195 Visit(e->right()); | 195 Visit(e->right()); |
| 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 | 205 |
| 205 void ALAA::VisitCaseClause(CaseClause* cc) { | 206 void ALAA::VisitCaseClause(CaseClause* cc) { |
| 206 if (!cc->is_default()) Visit(cc->label()); | 207 if (!cc->is_default()) Visit(cc->label()); |
| 207 VisitStatements(cc->statements()); | 208 VisitStatements(cc->statements()); |
| 208 } | 209 } |
| 209 | 210 |
| 210 | 211 |
| 211 void ALAA::VisitSloppyBlockFunctionStatement( | 212 void ALAA::VisitSloppyBlockFunctionStatement( |
| 212 SloppyBlockFunctionStatement* stmt) { | 213 SloppyBlockFunctionStatement* stmt) { |
| 213 Visit(stmt->statement()); | 214 Visit(stmt->statement()); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 int count = 0; | 312 int count = 0; |
| 312 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var); | 313 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var); |
| 313 for (size_t i = 0; i < list_.size(); i++) { | 314 for (size_t i = 0; i < list_.size(); i++) { |
| 314 if (list_[i].second->Contains(var_index)) count++; | 315 if (list_[i].second->Contains(var_index)) count++; |
| 315 } | 316 } |
| 316 return count; | 317 return count; |
| 317 } | 318 } |
| 318 } // namespace compiler | 319 } // namespace compiler |
| 319 } // namespace internal | 320 } // namespace internal |
| 320 } // namespace v8 | 321 } // namespace v8 |
| OLD | NEW |