V8 Project
|
#include <ast-value-factory.h>
Public Member Functions | |
virtual int | length () const OVERRIDE |
virtual void | Internalize (Isolate *isolate) OVERRIDE |
bool | AsArrayIndex (uint32_t *index) const |
const unsigned char * | raw_data () const |
bool | is_one_byte () const |
bool | IsOneByteEqualTo (const char *data) const |
uint16_t | FirstCharacter () const |
uint32_t | hash () const |
![]() | |
virtual | ~AstString () |
bool | IsEmpty () const |
Handle< String > | string () const |
![]() | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Static Public Member Functions | |
static bool | Compare (void *a, void *b) |
Private Member Functions | |
AstRawString (bool is_one_byte, const Vector< const byte > &literal_bytes, uint32_t hash) | |
AstRawString () | |
Private Attributes | |
bool | is_one_byte_ |
Vector< const byte > | literal_bytes_ |
uint32_t | hash_ |
Friends | |
class | AstValueFactory |
class | AstRawStringInternalizationKey |
Additional Inherited Members | |
![]() | |
Handle< String > | string_ |
Definition at line 65 of file ast-value-factory.h.
|
inlineprivate |
Definition at line 101 of file ast-value-factory.h.
|
inlineprivate |
Definition at line 105 of file ast-value-factory.h.
Definition at line 98 of file ast-value-factory.cc.
References is_one_byte_, v8::internal::String::kMaxArrayIndexSize, v8::internal::Vector< T >::length(), literal_bytes_, v8::internal::AstString::string_, and v8::internal::StringToArrayIndex().
Referenced by v8::internal::AstValue::IsPropertyName().
|
static |
Definition at line 119 of file ast-value-factory.cc.
References hash_, is_one_byte_, v8::internal::Vector< T >::length(), length(), literal_bytes_, and v8::internal::Vector< T >::start().
|
inline |
Definition at line 83 of file ast-value-factory.h.
References is_one_byte_, literal_bytes_, and v8::internal::Vector< T >::start().
|
inline |
Definition at line 92 of file ast-value-factory.h.
References hash_.
Referenced by v8::internal::AstRawStringInternalizationKey::AsHandle(), and v8::internal::AstRawStringInternalizationKey::Hash().
|
virtual |
Implements v8::internal::AstString.
Definition at line 87 of file ast-value-factory.cc.
References v8::internal::Isolate::factory(), v8::internal::Vector< T >::length(), literal_bytes_, v8::internal::StringTable::LookupKey(), and v8::internal::AstString::string_.
Referenced by v8::internal::AstValueFactory::GetString().
|
inline |
bool v8::internal::AstRawString::IsOneByteEqualTo | ( | const char * | data | ) | const |
Definition at line 109 of file ast-value-factory.cc.
References is_one_byte_, v8::internal::Vector< T >::length(), length(), literal_bytes_, and v8::internal::Vector< T >::start().
Referenced by v8::internal::ParserTraits::IsFutureStrictReserved().
|
inlinevirtual |
Implements v8::internal::AstString.
Definition at line 67 of file ast-value-factory.h.
References is_one_byte_, v8::internal::Vector< T >::length(), and literal_bytes_.
Referenced by v8::internal::CheckAndDeclareArrowParameter(), Compare(), v8::internal::Parser::Declare(), v8::internal::Interface::DoAdd(), v8::internal::Scanner::IdentifierIsFutureStrictReserved(), IsOneByteEqualTo(), and v8::internal::Scope::ResolveVariable().
|
inline |
Definition at line 78 of file ast-value-factory.h.
References literal_bytes_, and v8::internal::Vector< T >::start().
Referenced by v8::internal::Parser::Declare(), v8::internal::Interface::DoAdd(), v8::internal::Scanner::IdentifierIsFutureStrictReserved(), and v8::internal::Scope::ResolveVariable().
|
friend |
Definition at line 99 of file ast-value-factory.h.
|
friend |
Definition at line 98 of file ast-value-factory.h.
|
private |
Definition at line 113 of file ast-value-factory.h.
|
private |
Definition at line 109 of file ast-value-factory.h.
Referenced by AsArrayIndex(), v8::internal::AstRawStringInternalizationKey::AsHandle(), Compare(), FirstCharacter(), is_one_byte(), v8::internal::AstRawStringInternalizationKey::IsMatch(), IsOneByteEqualTo(), and length().
Definition at line 112 of file ast-value-factory.h.
Referenced by AsArrayIndex(), v8::internal::AstRawStringInternalizationKey::AsHandle(), Compare(), FirstCharacter(), Internalize(), v8::internal::AstRawStringInternalizationKey::IsMatch(), IsOneByteEqualTo(), length(), and raw_data().