| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 2d7c899d541d04ea0c71128dc630e2407aba4eba..2b0995ace283838ea5a324a41f1c212d865f629d 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -521,6 +521,10 @@ class Parser : public ParserBase {
|
| Mode old_mode_;
|
| };
|
|
|
| + virtual bool is_classic_mode() {
|
| + return top_scope_->is_classic_mode();
|
| + }
|
| +
|
| // Returns NULL if parsing failed.
|
| FunctionLiteral* ParseProgram();
|
|
|
| @@ -536,7 +540,6 @@ class Parser : public ParserBase {
|
| Handle<String> source);
|
|
|
| // Report syntax error
|
| - void ReportUnexpectedToken(Token::Value token);
|
| void ReportInvalidPreparseData(Handle<String> name, bool* ok);
|
| void ReportMessage(const char* message, Vector<const char*> args);
|
| void ReportMessage(const char* message, Vector<Handle<String> > args);
|
| @@ -645,13 +648,14 @@ class Parser : public ParserBase {
|
| Statement* body);
|
|
|
| ZoneList<Expression*>* ParseArguments(bool* ok);
|
| - FunctionLiteral* ParseFunctionLiteral(Handle<String> var_name,
|
| - bool name_is_reserved,
|
| - bool is_generator,
|
| - int function_token_position,
|
| - FunctionLiteral::FunctionType type,
|
| - bool* ok);
|
| -
|
| + FunctionLiteral* ParseFunctionLiteral(
|
| + Handle<String> name,
|
| + Scanner::Location function_name_location,
|
| + bool name_is_strict_reserved,
|
| + bool is_generator,
|
| + int function_token_position,
|
| + FunctionLiteral::FunctionType type,
|
| + bool* ok);
|
|
|
| // Magical syntax support.
|
| Expression* ParseV8Intrinsic(bool* ok);
|
| @@ -686,7 +690,7 @@ class Parser : public ParserBase {
|
| Literal* GetLiteralUndefined(int position);
|
| Literal* GetLiteralTheHole(int position);
|
|
|
| - Handle<String> ParseIdentifier(bool* ok);
|
| + Handle<String> ParseIdentifier(AllowEvalOrArgumentsAsIdentifier, bool* ok);
|
| Handle<String> ParseIdentifierOrStrictReservedWord(
|
| bool* is_strict_reserved, bool* ok);
|
| Handle<String> ParseIdentifierName(bool* ok);
|
| @@ -701,7 +705,6 @@ class Parser : public ParserBase {
|
|
|
| // Strict mode validation of LValue expressions
|
| void CheckStrictModeLValue(Expression* expression,
|
| - const char* error,
|
| bool* ok);
|
|
|
| // For harmony block scoping mode: Check if the scope has conflicting var/let
|
|
|