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

Side by Side Diff: src/ast/ast-expression-rewriter.cc

Issue 2664083002: [ignition] desugar async functions/generators/modules in BytecodeGenerator
Patch Set: get rid of lambdas, for better or worse.. Created 3 years, 10 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/ast-expression-rewriter.h" 5 #include "src/ast/ast-expression-rewriter.h"
6 #include "src/ast/ast.h" 6 #include "src/ast/ast.h"
7 #include "src/objects-inl.h" 7 #include "src/objects-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 181
182 void AstExpressionRewriter::VisitDebuggerStatement(DebuggerStatement* node) { 182 void AstExpressionRewriter::VisitDebuggerStatement(DebuggerStatement* node) {
183 NOTHING(); 183 NOTHING();
184 } 184 }
185 185
186 186
187 void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) { 187 void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) {
188 REWRITE_THIS(node); 188 REWRITE_THIS(node);
189 VisitDeclarations(node->scope()->declarations()); 189 VisitDeclarations(node->scope()->declarations());
190 Block* init_block = node->parameter_init_block();
191 if (init_block != nullptr) VisitBlock(init_block);
190 ZoneList<Statement*>* body = node->body(); 192 ZoneList<Statement*>* body = node->body();
191 if (body != nullptr) VisitStatements(body); 193 if (body != nullptr) VisitStatements(body);
192 } 194 }
193 195
194 196
195 void AstExpressionRewriter::VisitClassLiteral(ClassLiteral* node) { 197 void AstExpressionRewriter::VisitClassLiteral(ClassLiteral* node) {
196 REWRITE_THIS(node); 198 REWRITE_THIS(node);
197 // Not visiting `class_variable_proxy_`. 199 // Not visiting `class_variable_proxy_`.
198 if (node->extends() != nullptr) { 200 if (node->extends() != nullptr) {
199 AST_REWRITE_PROPERTY(Expression, node, extends); 201 AST_REWRITE_PROPERTY(Expression, node, extends);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 388
387 void AstExpressionRewriter::VisitRewritableExpression( 389 void AstExpressionRewriter::VisitRewritableExpression(
388 RewritableExpression* node) { 390 RewritableExpression* node) {
389 REWRITE_THIS(node); 391 REWRITE_THIS(node);
390 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); 392 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement));
391 } 393 }
392 394
393 395
394 } // namespace internal 396 } // namespace internal
395 } // namespace v8 397 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-numbering.cc » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698