Chromium Code Reviews| Index: src/parser.h |
| diff --git a/src/parser.h b/src/parser.h |
| index c975471eccf8ef67bb5d835860336e3bdd53b8cb..6d10ca2cf0eba41065d8a16dcea3607546113d6f 100644 |
| --- a/src/parser.h |
| +++ b/src/parser.h |
| @@ -627,6 +627,11 @@ class Parser : public ParserBase<ParserTraits> { |
| return parser.Parse(); |
| } |
| bool Parse(); |
| + void ParseOnBackground(); |
| + |
| + // Handle errors detected during parsing, move statistics to Isolate, |
| + // internalize strings (move them to the heap). |
| + void Internalize(); |
| private: |
| friend class ParserTraits; |
| @@ -663,8 +668,8 @@ class Parser : public ParserBase<ParserTraits> { |
| CompilationInfo* info() const { return info_; } |
| // Called by ParseProgram after setting up the scanner. |
| - FunctionLiteral* DoParseProgram(CompilationInfo* info, |
| - Handle<String> source); |
| + FunctionLiteral* DoParseProgram(CompilationInfo* info, Scope** scope, |
| + Scope** ad_hoc_eval_scope); |
|
rossberg
2014/09/10 13:39:28
Why is this called ad_hoc_eval_scope everywhere, a
marja
2014/09/10 14:22:12
Renamed to eval_scope.
It was called ad hoc becau
|
| void SetCachedData(); |
| @@ -682,7 +687,8 @@ class Parser : public ParserBase<ParserTraits> { |
| // By making the 'exception handling' explicit, we are forced to check |
| // for failure at the call sites. |
| void* ParseSourceElements(ZoneList<Statement*>* processor, int end_token, |
| - bool is_eval, bool is_global, bool* ok); |
| + bool is_eval, bool is_global, |
| + Scope** ad_hoc_eval_scope, bool* ok); |
| Statement* ParseModuleElement(ZoneList<const AstRawString*>* labels, |
| bool* ok); |
| Statement* ParseModuleDeclaration(ZoneList<const AstRawString*>* names, |
| @@ -809,10 +815,6 @@ class Parser : public ParserBase<ParserTraits> { |
| void ThrowPendingError(); |
| - // Handle errors detected during parsing, move statistics to Isolate, |
| - // internalize strings (move them to the heap). |
| - void Internalize(); |
| - |
| Isolate* isolate_; |
| Handle<Script> script_; |