V8 Project
|
#include <scanner.h>
Public Member Functions | |
LiteralBuffer () | |
~LiteralBuffer () | |
INLINE (void AddChar(uint32_t code_unit)) | |
bool | is_one_byte () const |
bool | is_contextual_keyword (Vector< const char > keyword) const |
Vector< const uint16_t > | two_byte_literal () const |
Vector< const uint8_t > | one_byte_literal () const |
int | length () const |
void | Reset () |
Handle< String > | Internalize (Isolate *isolate) const |
Private Member Functions | |
int | NewCapacity (int min_capacity) |
void | ExpandBuffer () |
void | ConvertToTwoByte () |
DISALLOW_COPY_AND_ASSIGN (LiteralBuffer) | |
Private Attributes | |
bool | is_one_byte_ |
int | position_ |
Vector< byte > | backing_store_ |
Static Private Attributes | |
static const int | kInitialCapacity = 16 |
static const int | kGrowthFactory = 4 |
static const int | kMinConversionSlack = 256 |
static const int | kMaxGrowth = 1 * MB |
|
inline |
Definition at line 198 of file scanner.h.
References backing_store_, v8::internal::Vector< T >::Dispose(), and v8::internal::Vector< T >::length().
|
inlineprivate |
Definition at line 270 of file scanner.h.
References backing_store_, DCHECK, v8::internal::Vector< T >::Dispose(), is_one_byte_, v8::internal::kUC16Size, v8::internal::Vector< T >::length(), v8::internal::Vector< T >::New(), NewCapacity(), position_, and v8::internal::Vector< T >::start().
Referenced by INLINE().
|
private |
|
inlineprivate |
Definition at line 263 of file scanner.h.
References backing_store_, v8::internal::Vector< T >::Dispose(), kInitialCapacity, v8::internal::MemCopy(), v8::internal::Vector< T >::New(), NewCapacity(), position_, and v8::internal::Vector< T >::start().
Referenced by INLINE().
|
inline |
Definition at line 204 of file scanner.h.
References backing_store_, ConvertToTwoByte(), DCHECK, ExpandBuffer(), is_one_byte_, unibrow::Latin1::kMaxChar, v8::internal::kOneByteSize, v8::internal::kUC16Size, v8::internal::Vector< T >::length(), and position_.
Definition at line 23 of file scanner.cc.
References v8::internal::Isolate::factory(), is_one_byte(), one_byte_literal(), and two_byte_literal().
Referenced by v8::internal::Parser::HandleSourceURLComments().
|
inline |
Definition at line 221 of file scanner.h.
References backing_store_, is_one_byte(), v8::internal::Vector< T >::length(), position_, and v8::internal::Vector< T >::start().
Referenced by v8::internal::Scanner::is_literal_contextual_keyword(), and v8::internal::Scanner::is_next_contextual_keyword().
|
inline |
Definition at line 219 of file scanner.h.
References is_one_byte_.
Referenced by Internalize(), is_contextual_keyword(), v8::internal::Scanner::is_literal_one_byte(), v8::internal::Scanner::is_next_literal_one_byte(), and v8::internal::Scanner::ScanIdentifierOrKeyword().
|
inline |
Definition at line 241 of file scanner.h.
References is_one_byte_, and position_.
Referenced by v8::internal::Parser::HandleSourceURLComments(), v8::internal::Scanner::literal_contains_escapes(), v8::internal::Scanner::literal_length(), and v8::internal::Scanner::next_literal_length().
Definition at line 257 of file scanner.h.
References backing_store_, kGrowthFactory, kMaxGrowth, v8::internal::Vector< T >::length(), v8::internal::Max(), and v8::internal::Min().
Referenced by ConvertToTwoByte(), and ExpandBuffer().
|
inline |
Definition at line 234 of file scanner.h.
References backing_store_, DCHECK, is_one_byte_, position_, and v8::internal::Vector< T >::start().
Referenced by Internalize(), v8::internal::Scanner::literal_one_byte_string(), v8::internal::Scanner::next_literal_one_byte_string(), and v8::internal::Scanner::ScanIdentifierOrKeyword().
|
inline |
Definition at line 245 of file scanner.h.
References is_one_byte_, and position_.
Referenced by v8::internal::Scanner::StartLiteral(), and v8::internal::Scanner::TryToParseSourceURLComment().
|
inline |
Definition at line 226 of file scanner.h.
References backing_store_, DCHECK, is_one_byte_, position_, and v8::internal::Vector< T >::start().
Referenced by Internalize(), v8::internal::Scanner::literal_two_byte_string(), and v8::internal::Scanner::next_literal_two_byte_string().
Definition at line 296 of file scanner.h.
Referenced by ConvertToTwoByte(), ExpandBuffer(), INLINE(), is_contextual_keyword(), NewCapacity(), one_byte_literal(), two_byte_literal(), and ~LiteralBuffer().
|
private |
Definition at line 294 of file scanner.h.
Referenced by ConvertToTwoByte(), INLINE(), is_one_byte(), length(), one_byte_literal(), Reset(), and two_byte_literal().
|
staticprivate |
Definition at line 254 of file scanner.h.
Referenced by NewCapacity().
|
staticprivate |
Definition at line 253 of file scanner.h.
Referenced by ExpandBuffer().
Definition at line 256 of file scanner.h.
Referenced by NewCapacity().
|
staticprivate |
|
private |
Definition at line 295 of file scanner.h.
Referenced by ConvertToTwoByte(), ExpandBuffer(), INLINE(), is_contextual_keyword(), length(), one_byte_literal(), Reset(), and two_byte_literal().