| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 3b3450c2398d1bbbf89a92cd746e9f1dd12f2010..b9d4c963e49ecf6c9b5a6a02cf8216fa4473685d 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -418,6 +418,10 @@ class ParserTraits {
|
| fni->PushLiteralName(id);
|
| }
|
| void PushPropertyName(FuncNameInferrer* fni, Expression* expression);
|
| + static void InferFunctionName(FuncNameInferrer* fni,
|
| + FunctionLiteral* func_to_infer) {
|
| + fni->AddFunction(func_to_infer);
|
| + }
|
|
|
| static void CheckFunctionLiteralInsideTopLevelObjectLiteral(
|
| Scope* scope, Expression* value, bool* has_function) {
|
| @@ -528,7 +532,8 @@ class ParserTraits {
|
| const AstRawString* GetNextSymbol(Scanner* scanner);
|
|
|
| Expression* ThisExpression(Scope* scope,
|
| - AstNodeFactory<AstConstructionVisitor>* factory);
|
| + AstNodeFactory<AstConstructionVisitor>* factory,
|
| + int pos = RelocInfo::kNoPosition);
|
| Literal* ExpressionFromLiteral(
|
| Token::Value token, int pos, Scanner* scanner,
|
| AstNodeFactory<AstConstructionVisitor>* factory);
|
| @@ -756,6 +761,9 @@ class Parser : public ParserBase<ParserTraits> {
|
|
|
| void RegisterTargetUse(Label* target, Target* stop);
|
|
|
| + Vector<VariableProxy*> ParameterListFromExpression(Expression* expression,
|
| + bool* ok);
|
| +
|
| // Factory methods.
|
|
|
| Scope* NewScope(Scope* parent, ScopeType type);
|
|
|