v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <preparser.h>
Data Structures | |
class | BASE_EMBEDDED |
class | ObjectLiteralChecker |
Public Types | |
typedef Traits::Type::Expression | ExpressionT |
typedef Traits::Type::Identifier | IdentifierT |
Public Member Functions | |
ParserBase (Scanner *scanner, uintptr_t stack_limit, v8::Extension *extension, ParserRecorder *log, typename Traits::Type::Zone *zone, typename Traits::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) |
Protected Types | |
enum | AllowEvalOrArgumentsAsIdentifier { kAllowEvalOrArguments, kDontAllowEvalOrArguments } |
enum | Mode { PARSE_LAZILY, PARSE_EAGERLY } |
enum | PropertyKind { kNone = 0, kGetterProperty = 1, kSetterProperty = 2, kValueProperty = 7, kValueFlag = 4 } |
Static Protected Member Functions | |
static int | Precedence (Token::Value token, bool accept_IN) |
Protected Attributes | |
bool | parenthesized_function_ |
Traits::Type::Scope * | scope_ |
FunctionState * | function_state_ |
v8::Extension * | extension_ |
FuncNameInferrer * | fni_ |
ParserRecorder * | log_ |
Mode | mode_ |
Definition at line 82 of file preparser.h.
typedef Traits::Type::Expression ExpressionT |
Definition at line 85 of file preparser.h.
typedef Traits::Type::Identifier IdentifierT |
Definition at line 86 of file preparser.h.
|
protected |
Enumerator | |
---|---|
kAllowEvalOrArguments | |
kDontAllowEvalOrArguments |
Definition at line 137 of file preparser.h.
|
protected |
Enumerator | |
---|---|
PARSE_LAZILY | |
PARSE_EAGERLY |
Definition at line 142 of file preparser.h.
|
protected |
Enumerator | |
---|---|
kNone | |
kGetterProperty | |
kSetterProperty | |
kValueProperty | |
kValueFlag |
Definition at line 439 of file preparser.h.
|
inline |
Definition at line 88 of file preparser.h.
|
inline |
Definition at line 115 of file preparser.h.
|
inline |
Definition at line 114 of file preparser.h.
|
inline |
Definition at line 118 of file preparser.h.
|
inline |
Definition at line 117 of file preparser.h.
|
inline |
Definition at line 112 of file preparser.h.
|
inline |
Definition at line 116 of file preparser.h.
|
inline |
Definition at line 113 of file preparser.h.
|
inlineprotected |
Definition at line 288 of file preparser.h.
|
inlineprotected |
Definition at line 329 of file preparser.h.
|
inlineprotected |
Definition at line 349 of file preparser.h.
|
inlineprotected |
Definition at line 281 of file preparser.h.
Referenced by ParserBase< ParserTraits >::Check(), and ParserBase< ParserTraits >::CheckContextualKeyword().
|
inlineprotected |
Definition at line 297 of file preparser.h.
Referenced by ParserBase< ParserTraits >::ExpectContextualKeyword(), and ParserBase< ParserTraits >::ExpectSemicolon().
|
inlineprotected |
Definition at line 338 of file preparser.h.
|
inlineprotected |
Definition at line 305 of file preparser.h.
|
inlineprotected |
Definition at line 366 of file preparser.h.
|
inlineprotected |
Definition at line 262 of file preparser.h.
|
inlineprotected |
Definition at line 267 of file preparser.h.
|
inlineprotected |
Definition at line 371 of file preparser.h.
Referenced by ParserBase< Traits >::BASE_EMBEDDED::set_generator_object_variable(), and ParserBase< Traits >::BASE_EMBEDDED::set_is_generator().
|
inlineprotected |
Definition at line 259 of file preparser.h.
Referenced by ParserBase< Traits >::BASE_EMBEDDED::ParsingModeScope().
|
protected |
Definition at line 1645 of file preparser.h.
References CHECK_OK_CUSTOM, COMMA, and Code::kMaxArguments.
|
protected |
Definition at line 1451 of file preparser.h.
|
protected |
Definition at line 1676 of file preparser.h.
References CHECK_OK, Token::IsAssignmentOp(), v8::internal::NULL, v8::internal::STRICT, and v8::internal::YIELD.
|
protected |
Definition at line 1791 of file preparser.h.
References ASSERT, CHECK_OK, v8::internal::EQ, Token::IsCompareOp(), and v8::internal::NOT.
|
protected |
Definition at line 1768 of file preparser.h.
References CHECK_OK.
|
protected |
Definition at line 1433 of file preparser.h.
|
protected |
Definition at line 1231 of file preparser.h.
References v8::internal::name, v8::internal::SLOPPY, v8::internal::STRICT, and v8::internal::YIELD.
|
protected |
Definition at line 1276 of file preparser.h.
References Token::IsKeyword().
|
protected |
Definition at line 1290 of file preparser.h.
|
protected |
Definition at line 1257 of file preparser.h.
References v8::internal::YIELD.
|
protected |
Definition at line 1926 of file preparser.h.
References CHECK_OK, v8::internal::mode(), v8::internal::name, and v8::internal::NULL.
|
protected |
Definition at line 2039 of file preparser.h.
References CHECK_OK, Scanner::Location::invalid(), v8::internal::MUL, and v8::internal::name.
|
protected |
Definition at line 2083 of file preparser.h.
References ASSERT, CHECK_OK, v8::internal::name, and v8::internal::NULL.
|
protected |
Definition at line 1997 of file preparser.h.
References CHECK_OK.
|
protected |
Definition at line 1482 of file preparser.h.
References CHECK_OK, ParserBase< Traits >::ObjectLiteralChecker::CheckProperty(), COMMA, Token::IsKeyword(), v8::internal::name, v8::internal::NULL, and STRING.
|
protected |
Definition at line 1893 of file preparser.h.
References CHECK_OK, Token::IsCountOp(), and v8::internal::STRICT.
|
protected |
Definition at line 1341 of file preparser.h.
References CHECK_OK, v8::internal::DIV, v8::internal::name, v8::internal::NULL, STRING, and v8::internal::YIELD.
|
protected |
Definition at line 1301 of file preparser.h.
References v8::internal::TENURED.
|
protected |
Definition at line 1835 of file preparser.h.
References CHECK_OK, Token::IsCountOp(), Token::IsUnaryOp(), and v8::internal::STRICT.
|
protected |
Definition at line 1745 of file preparser.h.
References CHECK_OK, v8::internal::MUL, and v8::internal::YIELD.
|
inlineprotected |
Definition at line 321 of file preparser.h.
|
inlineprotected |
Definition at line 256 of file preparser.h.
|
inlineprotected |
Definition at line 255 of file preparser.h.
Referenced by ParserTraits::GetSymbol().
|
inlinestaticprotected |
Definition at line 360 of file preparser.h.
|
inlineprotected |
Definition at line 374 of file preparser.h.
Referenced by ParserTraits::CheckStrictModeLValue(), and PreParserTraits::CheckStrictModeLValue().
|
inlineprotected |
Definition at line 380 of file preparser.h.
Referenced by ParserBase< ParserTraits >::CheckOctalLiteral(), and ParserBase< Traits >::ObjectLiteralChecker::CheckProperty().
|
protected |
Definition at line 1202 of file preparser.h.
References ASSERT, v8::internal::name, v8::internal::NULL, v8::internal::SLOPPY, STRING, Token::String(), and v8::internal::YIELD.
Referenced by ParserBase< ParserTraits >::Expect(), and ParserBase< ParserTraits >::ExpectContextualKeyword().
|
inlineprotected |
Definition at line 254 of file preparser.h.
Referenced by ParserBase< ParserTraits >::allow_harmony_numeric_literals(), ParserBase< ParserTraits >::allow_harmony_scoping(), ParserBase< ParserTraits >::allow_modules(), ParserBase< ParserTraits >::CheckContextualKeyword(), ParserBase< ParserTraits >::CheckOctalLiteral(), ParserBase< ParserTraits >::ExpectContextualKeyword(), ParserBase< ParserTraits >::ExpectSemicolon(), ParserTraits::GetSymbol(), ParserBase< ParserTraits >::INLINE(), ParserBase< ParserTraits >::ReportMessage(), ParserTraits::ReportMessage(), ParserBase< ParserTraits >::set_allow_harmony_numeric_literals(), ParserBase< ParserTraits >::set_allow_harmony_scoping(), and ParserBase< ParserTraits >::set_allow_modules().
|
inline |
Definition at line 127 of file preparser.h.
Referenced by PreParserApi::PreParse(), and SetParserFlags().
|
inline |
Definition at line 126 of file preparser.h.
Referenced by PreParserApi::PreParse(), and SetParserFlags().
|
inline |
Definition at line 132 of file preparser.h.
Referenced by PreParserApi::PreParse(), and SetParserFlags().
|
inline |
Definition at line 129 of file preparser.h.
Referenced by PreParserApi::PreParse(), SetParserFlags(), and TEST().
|
inline |
Definition at line 124 of file preparser.h.
Referenced by Parser::Parse(), PreParserApi::PreParse(), SetParserFlags(), and TEST().
|
inline |
Definition at line 128 of file preparser.h.
Referenced by SetParserFlags().
|
inline |
Definition at line 125 of file preparser.h.
Referenced by SetParserFlags(), and TEST().
|
inlineprotected |
Definition at line 258 of file preparser.h.
|
inlineprotected |
Definition at line 257 of file preparser.h.
Referenced by ParserTraits::ReportMessageAt().
|
inlineprotected |
Definition at line 370 of file preparser.h.
|
inlineprotected |
Definition at line 260 of file preparser.h.
|
protected |
Definition at line 490 of file preparser.h.
|
protected |
Definition at line 491 of file preparser.h.
Referenced by ParserTraits::ExpressionFromIdentifier(), and ParserTraits::ExpressionFromString().
|
protected |
Definition at line 489 of file preparser.h.
Referenced by ParserBase< ParserTraits >::factory(), and ParserBase< ParserTraits >::is_generator().
|
protected |
Definition at line 492 of file preparser.h.
Referenced by ParserTraits::GetSymbol(), and PreParserTraits::ReportMessageAt().
|
protected |
Definition at line 493 of file preparser.h.
Referenced by ParserBase< ParserTraits >::mode().
|
protected |
Definition at line 486 of file preparser.h.
|
protected |
Definition at line 488 of file preparser.h.
Referenced by ParserBase< Traits >::BASE_EMBEDDED::BlockState(), and ParserBase< ParserTraits >::strict_mode().