Chromium Code Reviews| Index: src/parser.h |
| diff --git a/src/parser.h b/src/parser.h |
| index 333aaf55c16c244f3fe8c51de80bfa8232c363db..cfe21deaef8815ee1d68ec12ac2c331924360349 100644 |
| --- a/src/parser.h |
| +++ b/src/parser.h |
| @@ -490,6 +490,9 @@ class ParserTraits { |
| static void CheckAssigningFunctionLiteralToProperty(Expression* left, |
| Expression* right); |
| + void CheckPossibleEvalCall(Expression* expression, |
|
Michael Starzinger
2014/03/21 09:45:44
nit: Should fit into one line. Also can we have a
marja
2014/03/21 09:50:56
Done.
The comment is:
// Keep track of eval() ca
|
| + Scope* scope); |
| + |
| // Determine if the expression is a variable proxy and mark it as being used |
| // in an assignment or with a increment/decrement operator. This is currently |
| // used on for the statically checking assignments to harmony const bindings. |
| @@ -584,7 +587,7 @@ class ParserTraits { |
| int function_token_position, |
| FunctionLiteral::FunctionType type, |
| bool* ok); |
| - Expression* ParseLeftHandSideExpression(bool* ok); |
| + Expression* ParseMemberWithNewPrefixesExpression(bool* ok); |
| private: |
| Parser* parser_; |
| @@ -622,11 +625,6 @@ class Parser : public ParserBase<ParserTraits> { |
| // https://codereview.chromium.org/7003030/ ). |
| static const int kMaxNumFunctionLocals = 4194303; // 2^22-1 |
| - enum Mode { |
| - PARSE_LAZILY, |
| - PARSE_EAGERLY |
| - }; |
| - |
| enum VariableDeclarationContext { |
| kModuleElement, |
| kBlockElement, |
| @@ -640,22 +638,6 @@ class Parser : public ParserBase<ParserTraits> { |
| kHasNoInitializers |
| }; |
| - class ParsingModeScope BASE_EMBEDDED { |
| - public: |
| - ParsingModeScope(Parser* parser, Mode mode) |
| - : parser_(parser), |
| - old_mode_(parser->mode()) { |
| - parser_->mode_ = mode; |
| - } |
| - ~ParsingModeScope() { |
| - parser_->mode_ = old_mode_; |
| - } |
| - |
| - private: |
| - Parser* parser_; |
| - Mode old_mode_; |
| - }; |
| - |
| // Returns NULL if parsing failed. |
| FunctionLiteral* ParseProgram(); |
| @@ -685,7 +667,6 @@ class Parser : public ParserBase<ParserTraits> { |
| } |
| bool inside_with() const { return scope_->inside_with(); } |
| - Mode mode() const { return mode_; } |
| ScriptDataImpl** cached_data() const { return cached_data_; } |
| CachedDataMode cached_data_mode() const { return cached_data_mode_; } |
| Scope* DeclarationScope(VariableMode mode) { |
| @@ -742,14 +723,10 @@ class Parser : public ParserBase<ParserTraits> { |
| // Support for hamony block scoped bindings. |
| Block* ParseScopedBlock(ZoneStringList* labels, bool* ok); |
| - Expression* ParseUnaryExpression(bool* ok); |
|
marja
2014/03/20 16:06:54
These are leftover definitions of funcs that have
|
| - Expression* ParseLeftHandSideExpression(bool* ok); |
| Expression* ParseMemberWithNewPrefixesExpression(bool* ok); |
| Expression* ParseMemberExpression(bool* ok); |
| Expression* ParseMemberExpressionContinuation(Expression* expression, |
| bool* ok); |
| - Expression* ParseObjectLiteral(bool* ok); |
| - |
| // Initialize the components of a for-in / for-of statement. |
| void InitializeForEachStatement(ForEachStatement* stmt, |
| Expression* each, |
| @@ -835,8 +812,6 @@ class Parser : public ParserBase<ParserTraits> { |
| ScriptDataImpl** cached_data_; |
| CachedDataMode cached_data_mode_; |
| - Mode mode_; |
| - |
| CompilationInfo* info_; |
| }; |