v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Static Public Member Functions | |
static SeqAsciiString * | cast (Object *obj) |
static int | SizeFor (int length) |
Static Public Member Functions inherited from SeqString | |
static SeqString * | 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 bool | kHasAsciiEncoding = true |
static const int | kMaxSize = 512 * MB - 1 |
static const int | kMaxLength = (kMaxSize - kHeaderSize) |
Static Public Attributes inherited from SeqString | |
static const int | kHeaderSize = String::kSize |
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::AllocateRawAsciiString(), Heap::AllocateStringFromAscii(), Heap::AllocateStringFromTwoByte(), Heap::AllocateSubString(), String::GetFlatContent(), BASE_EMBEDDED< Visitor >::Lookup(), String::ReadBlock(), String::ReadBlockIntoBuffer(), v8::internal::RUNTIME_FUNCTION(), String::Set(), NativeRegExpMacroAssembler::StringCharacterPosition(), and String::WriteToFlat().
|
inline |
Definition at line 2515 of file objects-inl.h.
Referenced by Heap::AllocateConsString(), Heap::AllocateRawAsciiString(), Heap::AllocateSubString(), String::GetFlatContent(), v8::internal::RUNTIME_FUNCTION(), and NativeRegExpMacroAssembler::StringCharacterPosition().
|
inline |
Definition at line 2510 of file objects-inl.h.
References FIELD_ADDR, and FixedArrayBase::kHeaderSize.
|
inline |
Definition at line 2497 of file objects-inl.h.
References ASSERT, v8::internal::kCharSize, FixedArrayBase::kHeaderSize, FixedArrayBase::length(), and READ_BYTE_FIELD.
|
inline |
Definition at line 6379 of file objects.cc.
References v8::internal::kCharSize, JSObject::kHeaderSize, and v8::internal::kHeapObjectTag.
Referenced by String::ReadBlock().
|
inline |
Definition at line 6507 of file objects.cc.
References String::ReadBlockBuffer::capacity, String::ReadBlockBuffer::cursor, v8::internal::kCharSize, JSObject::kHeaderSize, v8::internal::kHeapObjectTag, String::ReadBlockBuffer::remaining, and String::ReadBlockBuffer::util_buffer.
Referenced by String::ReadBlockIntoBuffer().
|
inline |
Definition at line 2503 of file objects-inl.h.
References ASSERT, v8::internal::kCharSize, FixedArrayBase::kHeaderSize, v8::internal::kMaxAsciiCharCode, FixedArrayBase::length(), and WRITE_BYTE_FIELD.
Referenced by String::Set().
|
inline |
Definition at line 2547 of file objects-inl.h.
References FixedArrayBase::length(), and FixedArray::SizeFor().
|
inlinestatic |
Definition at line 7548 of file objects.h.
References v8::internal::kCharSize, and OBJECT_POINTER_ALIGN.
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), and HeapObject::SizeFromMap().
|
static |
Definition at line 7556 of file objects.h.
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7553 of file objects.h.
Referenced by Heap::AllocateRawAsciiString().