v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <scanner.h>
Data Structures | |
class | LiteralScope |
struct | Location |
Static Public Attributes | |
static const int | kNoOctalLocation = -1 |
|
explicit |
Definition at line 47 of file scanner.cc.
Definition at line 1131 of file scanner.cc.
References Isolate::factory(), Factory::InternalizeOneByteString(), and Factory::InternalizeTwoByteString().
Referenced by ParserTraits::GetSymbol(), and TestScanRegExp().
Handle< String > AllocateNextLiteralString | ( | Isolate * | isolate, |
PretenureFlag | tenured | ||
) |
Definition at line 1119 of file scanner.cc.
References Isolate::factory(), Factory::NewStringFromOneByte(), and Factory::NewStringFromTwoByte().
Referenced by ParserTraits::NextLiteralString().
|
inline |
Definition at line 437 of file scanner.h.
References Scanner::Location::invalid().
Referenced by ParserBase< ParserTraits >::CheckOctalLiteral().
|
inline |
Definition at line 372 of file scanner.h.
Referenced by PreParserTraits::GetSymbol().
double DoubleValue | ( | ) |
Definition at line 1142 of file scanner.cc.
References v8::internal::ALLOW_BINARY, v8::internal::ALLOW_HEX, v8::internal::ALLOW_IMPLICIT_OCTAL, v8::internal::ALLOW_OCTAL, ASSERT, and v8::internal::StringToDouble().
Referenced by ParserTraits::ExpressionFromLiteral().
int FindNumber | ( | DuplicateFinder * | finder, |
int | value | ||
) |
Definition at line 1150 of file scanner.cc.
References DuplicateFinder::AddNumber().
Referenced by ParserBase< Traits >::ObjectLiteralChecker::CheckProperty().
int FindSymbol | ( | DuplicateFinder * | finder, |
int | value | ||
) |
Definition at line 1155 of file scanner.cc.
References DuplicateFinder::AddOneByteSymbol(), and DuplicateFinder::AddTwoByteSymbol().
Referenced by ParserBase< Traits >::ObjectLiteralChecker::CheckProperty().
|
inline |
Definition at line 451 of file scanner.h.
Referenced by ParserBase< ParserTraits >::allow_modules().
|
inline |
Definition at line 457 of file scanner.h.
Referenced by ParserBase< ParserTraits >::allow_harmony_numeric_literals().
|
inline |
Definition at line 445 of file scanner.h.
Referenced by ParserBase< ParserTraits >::allow_harmony_scoping().
void Initialize | ( | Utf16CharacterStream * | source | ) |
Definition at line 55 of file scanner.cc.
Referenced by TEST(), TestScanRegExp(), and TestStreamScanner().
|
inline |
Definition at line 393 of file scanner.h.
References ASSERT_NOT_NULL.
|
inline |
Definition at line 397 of file scanner.h.
References ASSERT_NOT_NULL.
|
inline |
Definition at line 417 of file scanner.h.
References Scanner::literal_contains_escapes(), and Vector< T >::start().
|
inline |
Definition at line 384 of file scanner.h.
References Scanner::Location::beg_pos, Scanner::Location::end_pos, Scanner::location(), and STRING.
Referenced by Scanner::IsGetOrSet(), and Scanner::UnescapedLiteralMatches().
|
inline |
Definition at line 375 of file scanner.h.
Referenced by Scanner::literal_contains_escapes(), ParserBase< ParserTraits >::position(), PreParser::PreParseLazyFunction(), ParserBase< ParserTraits >::ReportMessage(), ParserTraits::ReportMessage(), and TestStreamScanner().
void LogSymbol | ( | ParserRecorder * | log, |
int | position | ||
) |
Definition at line 1163 of file scanner.cc.
References ParserRecorder::LogOneByteSymbol(), and ParserRecorder::LogTwoByteSymbol().
Referenced by ParserTraits::GetSymbol().
Token::Value Next | ( | ) |
Definition at line 231 of file scanner.cc.
Referenced by ParserBase< ParserTraits >::INLINE(), TEST(), TestScanRegExp(), and TestStreamScanner().
|
inline |
Definition at line 436 of file scanner.h.
Referenced by ParserBase< ParserTraits >::CheckOctalLiteral().
|
inline |
Definition at line 380 of file scanner.h.
Referenced by ParserBase< ParserTraits >::INLINE(), and TestScanRegExp().
|
inline |
Definition at line 382 of file scanner.h.
Referenced by ParserBase< ParserTraits >::peek_position(), and PreParser::PreParseProgram().
bool ScanRegExpFlags | ( | ) |
Definition at line 1099 of file scanner.cc.
References Scanner::LiteralScope::Complete(), and UnicodeCache::IsIdentifierPart().
bool ScanRegExpPattern | ( | bool | seen_equal | ) |
Definition at line 1022 of file scanner.cc.
References Scanner::LiteralScope::Complete(), and UnicodeCache::IsLineTerminator().
Referenced by TestScanRegExp().
void SeekForward | ( | int | pos | ) |
Definition at line 601 of file scanner.cc.
References ASSERT, ASSERT_EQ, Utf16CharacterStream::pos(), and Utf16CharacterStream::SeekForward().
Referenced by TestStreamScanner().
|
inline |
Definition at line 454 of file scanner.h.
References v8::internal::modules().
Referenced by ParserBase< ParserTraits >::set_allow_modules(), and TEST().
|
inline |
Definition at line 460 of file scanner.h.
Referenced by ParserBase< ParserTraits >::set_allow_harmony_numeric_literals().
|
inline |
Definition at line 448 of file scanner.h.
Referenced by ParserBase< ParserTraits >::set_allow_harmony_scoping(), and TEST().
|
inline |
Definition at line 407 of file scanner.h.
References Scanner::literal_contains_escapes(), and Vector< T >::start().
Referenced by PreParserTraits::ExpressionFromString(), and PreParserTraits::GetSymbol().
|
inline |