extension_(info->extension()),
pre_parse_data_(NULL),
fni_(NULL),
- parenthesized_function_(false),
zone_(info->zone()),
info_(info) {
ASSERT(!script_.is_null());
FuncNameInferrer* fni_;
Mode mode_;
- // If true, the next (and immediately following) function literal is
- // preceded by a parenthesis.
- // Heuristically that means that the function will be called immediately,
- // so never lazily compile it.
- bool parenthesized_function_;
Zone* zone_;
CompilationInfo* info_;
ParserBase(Scanner* scanner, uintptr_t stack_limit,
typename Traits::ParserType this_object)
: Traits(this_object),
+ parenthesized_function_(false),
scanner_(scanner),
stack_limit_(stack_limit),
stack_overflow_(false),
LanguageMode language_mode_;
};
+ // If true, the next (and immediately following) function literal is
+ // preceded by a parenthesis.
+ // Heuristically that means that the function will be called immediately,
+ // so never lazily compile it.
+ bool parenthesized_function_;
+
private:
Scanner* scanner_;
uintptr_t stack_limit_;
uintptr_t stack_limit)
: ParserBase<PreParserTraits>(scanner, stack_limit, this),
log_(log),
- scope_(NULL),
- parenthesized_function_(false) { }
+ scope_(NULL) { }
~PreParser() {}
ParserRecorder* log_;
Scope* scope_;
- bool parenthesized_function_;
};