v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <preparser.h>
Public Types | |
enum | PreParseResult { kPreParseStackOverflow, kPreParseSuccess } |
typedef PreParserIdentifier | Identifier |
typedef PreParserExpression | Expression |
Public Types inherited from ParserBase< PreParserTraits > | |
typedef PreParserTraits::Type::Expression | ExpressionT |
typedef PreParserTraits::Type::Identifier | IdentifierT |
Public Member Functions | |
PreParser (Scanner *scanner, ParserRecorder *log, uintptr_t stack_limit) | |
PreParseResult | PreParseProgram () |
PreParseResult | PreParseLazyFunction (StrictMode strict_mode, bool is_generator, ParserRecorder *log) |
Public Member Functions inherited from ParserBase< PreParserTraits > | |
ParserBase (Scanner *scanner, uintptr_t stack_limit, v8::Extension *extension, ParserRecorder *log, typename PreParserTraits::Type::Zone *zone, typename PreParserTraits::Type::Parser this_object) | |
bool | allow_lazy () const |
bool | allow_natives_syntax () const |
bool | allow_generators () const |
bool | allow_for_of () const |
bool | allow_modules () const |
bool | allow_harmony_scoping () const |
bool | allow_harmony_numeric_literals () const |
void | set_allow_lazy (bool allow) |
void | set_allow_natives_syntax (bool allow) |
void | set_allow_generators (bool allow) |
void | set_allow_for_of (bool allow) |
void | set_allow_modules (bool allow) |
void | set_allow_harmony_scoping (bool allow) |
void | set_allow_harmony_numeric_literals (bool allow) |
Public Member Functions inherited from PreParserTraits | |
PreParserTraits (PreParser *pre_parser) | |
void | CheckStrictModeLValue (PreParserExpression expression, bool *ok) |
bool | ShortcutNumericLiteralBinaryExpression (PreParserExpression *x, PreParserExpression y, Token::Value op, int pos, PreParserFactory *factory) |
PreParserExpression | BuildUnaryExpression (PreParserExpression expression, Token::Value op, int pos, PreParserFactory *factory) |
void | ReportMessageAt (Scanner::Location location, const char *message, Vector< const char * > args, bool is_reference_error=false) |
void | ReportMessageAt (Scanner::Location location, const char *type, const char *name_opt, bool is_reference_error=false) |
void | ReportMessageAt (int start_pos, int end_pos, const char *type, const char *name_opt, bool is_reference_error=false) |
PreParserIdentifier | GetSymbol (Scanner *scanner) |
PreParserExpression | ExpressionFromString (int pos, Scanner *scanner, PreParserFactory *factory=NULL) |
PreParserExpression | ParseV8Intrinsic (bool *ok) |
PreParserExpression | ParseFunctionLiteral (PreParserIdentifier name, Scanner::Location function_name_location, bool name_is_strict_reserved, bool is_generator, int function_token_position, FunctionLiteral::FunctionType type, bool *ok) |
Friends | |
class | PreParserTraits |
Definition at line 1003 of file preparser.h.
typedef PreParserExpression Expression |
Definition at line 1006 of file preparser.h.
typedef PreParserIdentifier Identifier |
Definition at line 1005 of file preparser.h.
enum PreParseResult |
Enumerator | |
---|---|
kPreParseStackOverflow | |
kPreParseSuccess |
Definition at line 1008 of file preparser.h.
|
inline |
Definition at line 1013 of file preparser.h.
PreParser::PreParseResult PreParseLazyFunction | ( | StrictMode | strict_mode, |
bool | is_generator, | ||
ParserRecorder * | log | ||
) |
Definition at line 149 of file preparser.cc.
References ASSERT_EQ, ParserBase< PreParserTraits >::CheckOctalLiteral(), Scanner::Location::end_pos, v8::internal::FUNCTION_SCOPE, ParserBase< PreParserTraits >::function_state_, v8::internal::GLOBAL_SCOPE, PreParser::kPreParseStackOverflow, PreParser::kPreParseSuccess, Scanner::location(), v8::internal::log, ParserBase< PreParserTraits >::log_, ParserBase< PreParserTraits >::peek_position(), ParserBase< PreParserTraits >::ReportUnexpectedToken(), ParserBase< PreParserTraits >::scanner(), ParserBase< PreParserTraits >::scope_, ParserBase< PreParserTraits >::stack_overflow(), and v8::internal::STRICT.
|
inline |
Definition at line 1021 of file preparser.h.
References Scanner::Location::beg_pos, ParserBase< PreParserTraits >::CheckOctalLiteral(), ParserBase< PreParserTraits >::function_state_, v8::internal::GLOBAL_SCOPE, PreParser::kPreParseStackOverflow, PreParser::kPreParseSuccess, v8::internal::NULL, Scanner::peek_location(), ParserBase< PreParserTraits >::ReportUnexpectedToken(), ParserBase< PreParserTraits >::scanner(), ParserBase< PreParserTraits >::scope_, ParserBase< PreParserTraits >::stack_overflow(), and v8::internal::STRICT.
Referenced by PreParserApi::PreParse(), and TEST().
|
friend |
Definition at line 1049 of file preparser.h.