Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 57ec6ff65b588d8f35ec85db9acc9932d656ca10..a060c03d171fce32e434ddc0ee8a3ce17dfe7641 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -87,6 +87,7 @@ class ParserBase : public Traits { |
ParserBase(Scanner* scanner, uintptr_t stack_limit, |
v8::Extension* extension, |
+ ParserRecorder* log, |
typename Traits::Type::Zone* zone, |
typename Traits::Type::Parser this_object) |
: Traits(this_object), |
@@ -95,6 +96,7 @@ class ParserBase : public Traits { |
function_state_(NULL), |
extension_(extension), |
fni_(NULL), |
+ log_(log), |
scanner_(scanner), |
stack_limit_(stack_limit), |
stack_overflow_(false), |
@@ -457,6 +459,7 @@ class ParserBase : public Traits { |
FunctionState* function_state_; // Function state stack. |
v8::Extension* extension_; |
FuncNameInferrer* fni_; |
+ ParserRecorder* log_; |
private: |
Scanner* scanner_; |
@@ -948,11 +951,9 @@ class PreParser : public ParserBase<PreParserTraits> { |
kPreParseSuccess |
}; |
- PreParser(Scanner* scanner, |
- ParserRecorder* log, |
- uintptr_t stack_limit) |
- : ParserBase<PreParserTraits>(scanner, stack_limit, NULL, NULL, this), |
- log_(log) {} |
+ PreParser(Scanner* scanner, ParserRecorder* log, uintptr_t stack_limit) |
+ : ParserBase<PreParserTraits>(scanner, stack_limit, NULL, log, NULL, |
+ this) {} |
// Pre-parse the program from the character stream; returns true on |
// success (even if parsing failed, the pre-parse data successfully |
@@ -1111,11 +1112,8 @@ class PreParser : public ParserBase<PreParserTraits> { |
Expression GetStringSymbol(); |
bool CheckInOrOf(bool accept_OF); |
- |
- ParserRecorder* log_; |
}; |
- |
template<class Traits> |
ParserBase<Traits>::FunctionState::FunctionState( |
FunctionState** function_state_stack, |