Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 1f46fecb6a2e9b759ca248176f7ee8fac5641c7e..52d3d036c2f7feb85882721eeb2a9da1460c095d 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -434,19 +434,18 @@ class SingletonLogger; |
class Parser { |
public: |
- Parser(Handle<Script> script, |
+ Parser(CompilationInfo* info, |
int parsing_flags, // Combination of ParsingFlags |
v8::Extension* extension, |
- ScriptDataImpl* pre_data, |
- Zone* zone); |
+ ScriptDataImpl* pre_data); |
virtual ~Parser() { |
delete reusable_preparser_; |
reusable_preparser_ = NULL; |
} |
// Returns NULL if parsing failed. |
- FunctionLiteral* ParseProgram(CompilationInfo* info); |
- FunctionLiteral* ParseLazy(CompilationInfo* info); |
+ FunctionLiteral* ParseProgram(); |
+ FunctionLiteral* ParseLazy(); |
void ReportMessageAt(Scanner::Location loc, |
const char* message, |
@@ -546,12 +545,12 @@ class Parser { |
- FunctionLiteral* ParseLazy(CompilationInfo* info, |
- Utf16CharacterStream* source, |
+ FunctionLiteral* ParseLazy(Utf16CharacterStream* source, |
ZoneScope* zone_scope); |
Isolate* isolate() { return isolate_; } |
Zone* zone() const { return zone_; } |
+ CompilationInfo* info() const { return info_; } |
// Called by ParseProgram after setting up the scanner. |
FunctionLiteral* DoParseProgram(CompilationInfo* info, |
@@ -840,6 +839,7 @@ class Parser { |
bool parenthesized_function_; |
Zone* zone_; |
+ CompilationInfo* info_; |
friend class BlockState; |
friend class FunctionState; |
}; |