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

Unified Diff: src/ast/ast.h

Issue 1563923002: [es6] Handle function names in object and class literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handled review comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ast/ast-value-factory.h » ('j') | no next file with comments »
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 27cc667eb11991750796920c77ea7dfe31e5fa9c..8c9ef323ad29b422fb735a92c0ba154e905cac9e 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2589,8 +2589,8 @@ class FunctionLiteral final : public Expression {
DECLARE_NODE_TYPE(FunctionLiteral)
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; }
+ const AstString* raw_name() const { return raw_name_; }
+ void set_raw_name(const AstString* 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; }
@@ -2692,7 +2692,7 @@ class FunctionLiteral final : public Expression {
}
protected:
- FunctionLiteral(Zone* zone, const AstRawString* name,
+ FunctionLiteral(Zone* zone, const AstString* name,
AstValueFactory* ast_value_factory, Scope* scope,
ZoneList<Statement*>* body, int materialized_literal_count,
int expected_property_count, int parameter_count,
@@ -2724,7 +2724,7 @@ class FunctionLiteral final : public Expression {
}
private:
- const AstRawString* raw_name_;
+ const AstString* raw_name_;
Handle<String> name_;
Scope* scope_;
ZoneList<Statement*>* body_;
« no previous file with comments | « no previous file | src/ast/ast-value-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698