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

Side by Side Diff: src/ast/prettyprinter.cc

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap Created 3 years, 11 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
« no previous file with comments | « src/ast/ast-types.cc ('k') | src/bailout-reason.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 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/prettyprinter.h" 5 #include "src/ast/prettyprinter.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 IndentedScope indent(this, "...", node->position()); 1192 IndentedScope indent(this, "...", node->position());
1193 Visit(node->expression()); 1193 Visit(node->expression());
1194 } 1194 }
1195 1195
1196 1196
1197 void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) { 1197 void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) {
1198 IndentedScope indent(this, "()", node->position()); 1198 IndentedScope indent(this, "()", node->position());
1199 } 1199 }
1200 1200
1201 void AstPrinter::VisitGetIterator(GetIterator* node) { 1201 void AstPrinter::VisitGetIterator(GetIterator* node) {
1202 IndentedScope indent(this, "GET-ITERATOR", node->position()); 1202 const char* desc = node->hint() == GetIterator::kAsync ? "GET-ASYNC-ITERATOR"
1203 : "GET-ITERATOR";
1204 IndentedScope indent(this, desc, node->position());
1203 Visit(node->iterable()); 1205 Visit(node->iterable());
1204 } 1206 }
1205 1207
1206 void AstPrinter::VisitThisFunction(ThisFunction* node) { 1208 void AstPrinter::VisitThisFunction(ThisFunction* node) {
1207 IndentedScope indent(this, "THIS-FUNCTION", node->position()); 1209 IndentedScope indent(this, "THIS-FUNCTION", node->position());
1208 } 1210 }
1209 1211
1210 1212
1211 void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) { 1213 void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {
1212 IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position()); 1214 IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position());
1213 } 1215 }
1214 1216
1215 1217
1216 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { 1218 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) {
1217 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position()); 1219 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position());
1218 } 1220 }
1219 1221
1220 1222
1221 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { 1223 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) {
1222 Visit(node->expression()); 1224 Visit(node->expression());
1223 } 1225 }
1224 1226
1225 1227
1226 #endif // DEBUG 1228 #endif // DEBUG
1227 1229
1228 } // namespace internal 1230 } // namespace internal
1229 } // namespace v8 1231 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-types.cc ('k') | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698