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

Side by Side Diff: src/compiler/ast-loop-assignment-analyzer.cc

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments 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 | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/bytecode-graph-builder.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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/bytecode-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698