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

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

Issue 1981323002: [compiler] Remove obsolete JSYield operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months 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
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/compiler.h" 6 #include "src/compiler.h"
7 #include "src/parsing/parser.h" 7 #include "src/parsing/parser.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 for (int i = 0; i < properties->length(); i++) { 144 for (int i = 0; i < properties->length(); i++) {
145 Visit(properties->at(i)->key()); 145 Visit(properties->at(i)->key());
146 Visit(properties->at(i)->value()); 146 Visit(properties->at(i)->value());
147 } 147 }
148 } 148 }
149 149
150 150
151 void ALAA::VisitArrayLiteral(ArrayLiteral* e) { VisitExpressions(e->values()); } 151 void ALAA::VisitArrayLiteral(ArrayLiteral* e) { VisitExpressions(e->values()); }
152 152
153 153
154 void ALAA::VisitYield(Yield* stmt) { 154 void ALAA::VisitYield(Yield* stmt) { UNREACHABLE(); }
Michael Starzinger 2016/05/17 15:49:32 Likewise, this runs before the AstGrpahBuilder, le
155 Visit(stmt->generator_object());
156 Visit(stmt->expression());
157 }
158 155
159 156
160 void ALAA::VisitThrow(Throw* stmt) { Visit(stmt->exception()); } 157 void ALAA::VisitThrow(Throw* stmt) { Visit(stmt->exception()); }
161 158
162 159
163 void ALAA::VisitProperty(Property* e) { 160 void ALAA::VisitProperty(Property* e) {
164 Visit(e->obj()); 161 Visit(e->obj());
165 Visit(e->key()); 162 Visit(e->key());
166 } 163 }
167 164
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 int count = 0; 310 int count = 0;
314 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var); 311 int var_index = AstLoopAssignmentAnalyzer::GetVariableIndex(scope, var);
315 for (size_t i = 0; i < list_.size(); i++) { 312 for (size_t i = 0; i < list_.size(); i++) {
316 if (list_[i].second->Contains(var_index)) count++; 313 if (list_[i].second->Contains(var_index)) count++;
317 } 314 }
318 return count; 315 return count;
319 } 316 }
320 } // namespace compiler 317 } // namespace compiler
321 } // namespace internal 318 } // namespace internal
322 } // namespace v8 319 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698