v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <preparser.h>
Public Types | |
enum | PreParseResult { kPreParseStackOverflow, kPreParseSuccess } |
Public Member Functions | |
PreParser (i::Scanner *scanner, i::ParserRecorder *log, uintptr_t stack_limit, bool allow_lazy, bool allow_natives_syntax, bool allow_modules) | |
~PreParser () | |
PreParseResult | PreParseLazyFunction (i::LanguageMode mode, i::ParserRecorder *log) |
Static Public Member Functions | |
static PreParseResult | PreParseProgram (i::Scanner *scanner, i::ParserRecorder *log, int flags, uintptr_t stack_limit) |
Definition at line 107 of file preparser.h.
enum PreParseResult |
Enumerator | |
---|---|
kPreParseStackOverflow | |
kPreParseSuccess |
Definition at line 109 of file preparser.h.
|
inline |
Definition at line 115 of file preparser.h.
Referenced by PreParser::PreParseProgram().
|
inline |
Definition at line 134 of file preparser.h.
PreParser::PreParseResult PreParseLazyFunction | ( | i::LanguageMode | mode, |
i::ParserRecorder * | log | ||
) |
Definition at line 55 of file preparser.cc.
References ASSERT_EQ, Scanner::Location::beg_pos, Scanner::current_token(), Scanner::Location::end_pos, PreParser::kPreParseStackOverflow, PreParser::kPreParseSuccess, Scanner::location(), Scanner::peek(), and Scanner::peek_location().
|
inlinestatic |
Definition at line 140 of file preparser.h.
References v8::internal::kAllowLazy, v8::internal::kAllowModules, v8::internal::kAllowNativesSyntax, and PreParser::PreParser().
Referenced by v8::Preparse(), TEST(), and TestParserSync().