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

Unified Diff: src/ast.h

Issue 575083002: Cleanup class parsing a bit (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Git rebase Created 6 years, 3 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/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 394e7f974a0742c2ea81e71377b693e38da2463f..03f1adf5ae086f6e4e73ddc09ca2cbe904b36b5c 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2510,27 +2510,23 @@ class ClassLiteral FINAL : public Expression {
Handle<String> name() const { return raw_name_->string(); }
const AstRawString* raw_name() const { return raw_name_; }
Expression* extends() const { return extends_; }
- FunctionLiteral* constructor() const { return constructor_; }
+ Expression* constructor() const { return constructor_; }
ZoneList<Property*>* properties() const { return properties_; }
protected:
ClassLiteral(Zone* zone, const AstRawString* name, Expression* extends,
- FunctionLiteral* constructor, ZoneList<Property*>* properties,
- AstValueFactory* ast_value_factory, int position, IdGen* id_gen)
+ Expression* constructor, ZoneList<Property*>* properties,
+ int position, IdGen* id_gen)
: Expression(zone, position, id_gen),
raw_name_(name),
- raw_inferred_name_(ast_value_factory->empty_string()),
extends_(extends),
constructor_(constructor),
properties_(properties) {}
private:
const AstRawString* raw_name_;
- Handle<String> name_;
- const AstString* raw_inferred_name_;
- Handle<String> inferred_name_;
Expression* extends_;
- FunctionLiteral* constructor_;
+ Expression* constructor_;
ZoneList<Property*>* properties_;
};
@@ -3504,13 +3500,11 @@ class AstNodeFactory FINAL BASE_EMBEDDED {
}
ClassLiteral* NewClassLiteral(const AstRawString* name, Expression* extends,
- FunctionLiteral* constructor,
+ Expression* constructor,
ZoneList<ObjectLiteral::Property*>* properties,
- AstValueFactory* ast_value_factory,
int position) {
- ClassLiteral* lit =
- new (zone_) ClassLiteral(zone_, name, extends, constructor, properties,
- ast_value_factory, position, id_gen_);
+ ClassLiteral* lit = new (zone_) ClassLiteral(
+ zone_, name, extends, constructor, properties, position, id_gen_);
VISIT_AND_RETURN(ClassLiteral, lit)
}
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698