v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Public Types | |
typedef FixedBodyDescriptor < kFirstOffset, kSecondOffset+kPointerSize, kSize > | BodyDescriptor |
Static Public Member Functions | |
static ConsString * | cast (Object *obj) |
Static Public Member Functions inherited from String | |
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 int | NonAsciiStart (const char *chars, int length) |
static bool | IsAscii (const char *chars, int length) |
static int | NonAsciiStart (const uc16 *chars, int length) |
static bool | IsAscii (const uc16 *chars, int length) |
Static Public Member Functions inherited from HeapObject | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
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 int | kFirstOffset = POINTER_SIZE_ALIGN(String::kSize) |
static const int | kSecondOffset = kFirstOffset + kPointerSize |
static const int | kSize = kSecondOffset + kPointerSize |
static const int | kMinLength = 13 |
Static Public Attributes inherited from String | |
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 | kEmptyStringHash = kIsNotArrayIndexMask |
static const int | kMaxLength = (1 << (32 - 2)) - 1 |
static const int | kMaxHashCalcLength = 16383 |
static const int | kMaxShortPrintLength = 1024 |
Static Public Attributes inherited from HeapObject | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
static const int | kHeaderSize = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
Static Protected Member Functions inherited from String | |
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::AllocateSubString(), ConsString::ConsStringGet(), ConsString::ConsStringReadBlock(), ConsString::ConsStringReadBlockIntoBuffer(), String::GetFlatContent(), String::IsFlat(), NativeRegExpMacroAssembler::Match(), String::ReadBlock(), String::ReadBlockIntoBuffer(), v8::internal::StringReplaceOneCharWithString(), TEST(), THREADED_TEST(), String::TryFlatten(), v8::internal::Utf8LengthHelper(), and String::WriteToFlat().
uint16_t ConsStringGet | ( | int | index | ) |
Definition at line 6834 of file objects.cc.
References ASSERT, String::cast(), ConsString::cast(), ConsString::first(), String::length(), ConsString::second(), and UNREACHABLE.
|
inline |
Definition at line 6398 of file objects.cc.
References ASSERT, String::ReadBlockBuffer::capacity, ConsString::cast(), ConsString::ConsStringReadBlockIntoBuffer(), String::ReadBlockBuffer::cursor, ConsString::first(), String::length(), String::ReadBlock(), String::ReadBlockBuffer::remaining, ConsString::second(), and String::ReadBlockBuffer::util_buffer.
Referenced by String::ReadBlock().
|
inline |
Definition at line 6777 of file objects.cc.
References String::cast(), ConsString::cast(), ConsString::first(), String::length(), String::ReadBlockIntoBuffer(), and ConsString::second().
Referenced by ConsString::ConsStringReadBlock(), and String::ReadBlockIntoBuffer().
|
inline |
Definition at line 2567 of file objects-inl.h.
References String::cast(), DescriptorArray::kFirstOffset, and READ_FIELD.
Referenced by Heap::AllocateSubString(), ConsString::ConsStringGet(), ConsString::ConsStringReadBlock(), ConsString::ConsStringReadBlockIntoBuffer(), String::GetFlatContent(), NativeRegExpMacroAssembler::Match(), v8::internal::StringReplaceOneCharWithString(), TEST(), String::TryFlatten(), v8::internal::Utf8LengthHelper(), and String::WriteToFlat().
|
inline |
Definition at line 2583 of file objects-inl.h.
References String::cast(), and READ_FIELD.
Referenced by Heap::AllocateSubString(), ConsString::ConsStringGet(), ConsString::ConsStringReadBlock(), ConsString::ConsStringReadBlockIntoBuffer(), String::GetFlatContent(), String::IsFlat(), v8::internal::StringReplaceOneCharWithString(), v8::internal::Utf8LengthHelper(), and String::WriteToFlat().
|
inline |
Definition at line 2577 of file objects-inl.h.
References CONDITIONAL_WRITE_BARRIER, HeapObject::GetHeap(), DescriptorArray::kFirstOffset, and WRITE_FIELD.
Referenced by Heap::AllocateConsString().
|
inline |
Definition at line 2593 of file objects-inl.h.
References CONDITIONAL_WRITE_BARRIER, HeapObject::GetHeap(), and WRITE_FIELD.
Referenced by Heap::AllocateConsString().
|
inline |
Definition at line 2572 of file objects-inl.h.
References DescriptorArray::kFirstOffset, and READ_FIELD.
|
inline |
Definition at line 2588 of file objects-inl.h.
References READ_FIELD.
|
static |
Definition at line 7653 of file objects.h.
Referenced by String::GetUnderlying().
|
static |
Definition at line 7666 of file objects.h.
Referenced by Heap::AllocateConsString(), and TEST().
|
static |
|
static |