Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 86680e1683d713dcb112b0cafe99cdc7cd1723f6..af530339d0d0d291989e17d265716211371f02c4 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -152,8 +152,7 @@ |
typedef ObjectLiteral::Property* ObjectLiteralProperty; |
typedef ClassLiteral::Property* ClassLiteralProperty; |
typedef ZoneList<v8::internal::Expression*>* ExpressionList; |
- typedef ZoneList<ObjectLiteral::Property*>* ObjectPropertyList; |
- typedef ZoneList<ClassLiteral::Property*>* ClassPropertyList; |
+ typedef ZoneList<ObjectLiteral::Property*>* PropertyList; |
typedef ParserFormalParameters FormalParameters; |
typedef v8::internal::Statement* Statement; |
typedef ZoneList<v8::internal::Statement*>* StatementList; |
@@ -270,6 +269,9 @@ |
}; |
ZoneList<const NamedImport*>* ParseNamedImports(int pos, bool* ok); |
Statement* ParseFunctionDeclaration(bool* ok); |
+ Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
+ bool default_export, bool* ok); |
+ Statement* ParseNativeDeclaration(bool* ok); |
Block* BuildInitializationBlock(DeclarationParsingResult* parsing_result, |
ZoneList<const AstRawString*>* names, |
bool* ok); |
@@ -295,21 +297,6 @@ |
FunctionLiteral* function, int pos, |
bool is_generator, bool is_async, |
ZoneList<const AstRawString*>* names, bool* ok); |
- V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, |
- Expression* value, |
- ZoneList<const AstRawString*>* names, |
- int class_token_pos, int end_pos, bool* ok); |
- V8_INLINE void DeclareClassVariable(const AstRawString* name, |
- Scope* block_scope, ClassInfo* class_info, |
- int class_token_pos, bool* ok); |
- V8_INLINE void DeclareClassProperty(const AstRawString* class_name, |
- ClassLiteralProperty* property, |
- ClassInfo* class_info, bool* ok); |
- V8_INLINE Expression* RewriteClassLiteral(const AstRawString* name, |
- ClassInfo* class_info, int pos, |
- bool* ok); |
- V8_INLINE Statement* DeclareNative(const AstRawString* name, int pos, |
- bool* ok); |
Expression* ParseYieldStarExpression(bool* ok); |
@@ -432,6 +419,11 @@ |
FunctionLiteral* SynthesizeClassFieldInitializer(int count); |
FunctionLiteral* InsertClassFieldInitializer(FunctionLiteral* constructor); |
+ Expression* ParseClassLiteral(const AstRawString* name, |
+ Scanner::Location class_name_location, |
+ bool name_is_strict_reserved, int pos, |
+ bool* ok); |
+ |
// Get odd-ball literals. |
Literal* GetLiteralUndefined(int position); |
@@ -747,14 +739,8 @@ |
fni_->PushEnclosingName(name); |
} |
- V8_INLINE void AddFunctionForNameInference(FunctionLiteral* func_to_infer) { |
- DCHECK_NOT_NULL(fni_); |
+ V8_INLINE void InferFunctionName(FunctionLiteral* func_to_infer) { |
fni_->AddFunction(func_to_infer); |
- } |
- |
- V8_INLINE void InferFunctionName() { |
- DCHECK_NOT_NULL(fni_); |
- fni_->Infer(); |
} |
// If we assign a function literal to a property we pretenure the |
@@ -950,7 +936,7 @@ |
V8_INLINE ZoneList<Expression*>* NewExpressionList(int size) const { |
return new (zone()) ZoneList<Expression*>(size, zone()); |
} |
- V8_INLINE ZoneList<ObjectLiteral::Property*>* NewObjectPropertyList( |
+ V8_INLINE ZoneList<ObjectLiteral::Property*>* NewPropertyList( |
int size) const { |
return new (zone()) ZoneList<ObjectLiteral::Property*>(size, zone()); |
} |