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

Unified Diff: src/ast/ast.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ast/ast-expression-rewriter.cc » ('j') | src/interpreter/bytecode-generator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 5ce553186c67a5ccec72729d6d553b2254602932..30e2a3a256969727e015adf851f0a3760291ec0d 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2597,6 +2597,12 @@ class FunctionLiteral final : public Expression {
const AstString* raw_name() const { return raw_name_; }
void set_raw_name(const AstString* name) { raw_name_ = name; }
DeclarationScope* scope() const { return scope_; }
+
+ // AST desugaring of initialization of non-simple parameters. If non-null,
+ // forces Ignition/TF pipeline.
+ Block* parameter_init_block() const { return parameter_init_block_; }
+ void set_parameter_init_block(Block* block) { parameter_init_block_ = block; }
+
ZoneList<Statement*>* body() const { return body_; }
void set_function_token_position(int pos) { function_token_position_ = pos; }
int function_token_position() const { return function_token_position_; }
@@ -2747,6 +2753,7 @@ class FunctionLiteral final : public Expression {
has_braces_(has_braces),
raw_name_(name),
scope_(scope),
+ parameter_init_block_(nullptr),
body_(body),
raw_inferred_name_(ast_value_factory->empty_string()),
ast_properties_(zone),
@@ -2780,6 +2787,7 @@ class FunctionLiteral final : public Expression {
const AstString* raw_name_;
DeclarationScope* scope_;
+ Block* parameter_init_block_;
ZoneList<Statement*>* body_;
const AstString* raw_inferred_name_;
Handle<String> inferred_name_;
« no previous file with comments | « no previous file | src/ast/ast-expression-rewriter.cc » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698