![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Public Types | |
typedef v8::String::ExternalAsciiStringResource | Resource |
Static Public Member Functions | |
static ExternalAsciiString * | cast (Object *obj) |
![]() | |
static ExternalString * | cast (Object *obj) |
![]() | |
static uint32_t | ComputeHashField (unibrow::CharacterStream *buffer, int length, uint32_t seed) |
static bool | ComputeArrayIndex (unibrow::CharacterStream *buffer, uint32_t *index, int length) |
static String * | cast (Object *obj) |
static const unibrow::byte * | ReadBlock (String *input, unibrow::byte *util_buffer, unsigned capacity, unsigned *remaining, unsigned *offset) |
static const unibrow::byte * | ReadBlock (String **input, unibrow::byte *util_buffer, unsigned capacity, unsigned *remaining, unsigned *offset) |
template<typename sinkchar > | |
static void | WriteToFlat (String *source, sinkchar *sink, int from, int to) |
static bool | IsAscii (const char *chars, int length) |
static bool | IsAscii (const uc16 *chars, int length) |
![]() | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
![]() | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (Object *value) |
Static Public Attributes | |
static const bool | kHasAsciiEncoding = true |
![]() | |
static const int | kResourceOffset = POINTER_SIZE_ALIGN(String::kSize) |
static const int | kShortSize = kResourceOffset + kPointerSize |
static const int | kResourceDataOffset = kResourceOffset + kPointerSize |
static const int | kSize = kResourceDataOffset + kPointerSize |
![]() | |
static const int | kLengthOffset = HeapObject::kHeaderSize |
static const int | kHashFieldOffset = kLengthOffset + kPointerSize |
static const int | kSize = kHashFieldOffset + kPointerSize |
static const int | kMaxArrayIndexSize = 10 |
static const int | kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar |
static const unsigned | kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar |
static const int | kMaxUtf16CodeUnit = 0xffff |
static const int | kHashNotComputedMask = 1 |
static const int | kIsNotArrayIndexMask = 1 << 1 |
static const int | kNofHashBitFields = 2 |
static const int | kHashShift = kNofHashBitFields |
static const uint32_t | kHashBitMask = 0xffffffffu >> kHashShift |
static const int | kMaxCachedArrayIndexLength = 7 |
static const int | kArrayIndexValueBits = 24 |
static const int | kArrayIndexLengthBits |
static const int | kArrayIndexHashLengthShift |
static const int | kArrayIndexHashMask = (1 << kArrayIndexHashLengthShift) - 1 |
static const int | kArrayIndexValueMask |
static const int | kContainsCachedArrayIndexMask |
static const int | kEmptyHashField |
static const int | kZeroHash = kIsNotArrayIndexMask |
static const int | kMaxLength = (1 << (32 - 2)) - 1 |
static const int | kMaxHashCalcLength = 16383 |
static const int | kMaxShortPrintLength = 1024 |
![]() | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
![]() | |
static const int | kHeaderSize = 0 |
Additional Inherited Members | |
![]() | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
![]() | |
static const unibrow::byte * | ReadBlock (String *input, ReadBlockBuffer *buffer, unsigned *offset, unsigned max_chars) |
static void | ReadBlockIntoBuffer (String *input, ReadBlockBuffer *buffer, unsigned *offset_ptr, unsigned max_chars) |
|
inlinestatic |
Referenced by Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), v8::internal::BOOL_ACCESSORS(), Deserializer::Deserialize(), String::GetFlatContent(), String::MakeExternal(), GlobalHandles::Node::PostGarbageCollectionProcessing(), String::ReadBlock(), String::ReadBlockIntoBuffer(), NativeRegExpMacroAssembler::StringCharacterPosition(), Serializer::ObjectSerializer::VisitExternalAsciiString(), and String::WriteToFlat().
|
inline |
Definition at line 2486 of file objects-inl.h.
References ASSERT, and FixedArrayBase::length().
|
inline |
Definition at line 5110 of file objects-inl.h.
References FIELD_ADDR.
|
inline |
Definition at line 5118 of file objects-inl.h.
References FIELD_ADDR.
const unibrow::byte * ExternalAsciiStringReadBlock | ( | unsigned * | remaining, |
unsigned * | offset, | ||
unsigned | chars | ||
) |
Definition at line 6391 of file objects.cc.
Referenced by String::ReadBlock().
|
inline |
Definition at line 6450 of file objects.cc.
References String::ReadBlockBuffer::capacity, String::ReadBlockBuffer::cursor, String::ReadBlockBuffer::remaining, and String::ReadBlockBuffer::util_buffer.
|
inline |
Definition at line 2481 of file objects-inl.h.
Referenced by Heap::AllocateConsString(), String::GetFlatContent(), and NativeRegExpMacroAssembler::StringCharacterPosition().
|
inline |
Definition at line 2460 of file objects-inl.h.
References FIELD_ADDR.
Referenced by v8::internal::BOOL_ACCESSORS(), and GlobalHandles::Node::PostGarbageCollectionProcessing().
|
inline |
Definition at line 2473 of file objects-inl.h.
References FIELD_ADDR, and v8::internal::NULL.
Referenced by Heap::AllocateExternalStringFromAscii().
|
inline |
Definition at line 2465 of file objects-inl.h.
References FIELD_ADDR.
Referenced by Deserializer::Deserialize().