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

Unified Diff: src/ast/ast.h

Issue 1518873004: [es6] Support Function name inference in variable declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | test/test262/test262.status » ('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 243a777f624f2dd03dc7aa66a2e2c657d9c363cf..b4f2992e047215ac95d2c61b96a98d64afbfb5a1 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2531,6 +2531,7 @@ class FunctionLiteral final : public Expression {
Handle<String> name() const { return raw_name_->string(); }
const AstRawString* raw_name() const { return raw_name_; }
+ void set_raw_name(const AstRawString* name) { raw_name_ = name; }
Scope* scope() const { return scope_; }
ZoneList<Statement*>* body() const { return body_; }
void set_function_token_position(int pos) { function_token_position_ = pos; }
@@ -2699,6 +2700,11 @@ class ClassLiteral final : public Expression {
Handle<String> name() const { return raw_name_->string(); }
const AstRawString* raw_name() const { return raw_name_; }
+ void set_raw_name(const AstRawString* name) {
+ DCHECK_NULL(raw_name_);
+ raw_name_ = name;
+ }
+
Scope* scope() const { return scope_; }
VariableProxy* class_variable_proxy() const { return class_variable_proxy_; }
Expression* extends() const { return extends_; }
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | test/test262/test262.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698