v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
Public Member Functions | |
DictionaryElementsAccessor (const char *name) | |
Public Member Functions inherited from ElementsAccessor | |
ElementsAccessor (const char *name) | |
virtual | ~ElementsAccessor () |
const char * | name () const |
void | CopyElements (Handle< JSObject > from_holder, Handle< FixedArrayBase > to, ElementsKind from_kind, Handle< FixedArrayBase > from=Handle< FixedArrayBase >::null()) |
Static Public Member Functions | |
static MUST_USE_RESULT MaybeObject * | SetLengthWithoutNormalize (FixedArrayBase *store, JSArray *array, Object *length_object, uint32_t length) |
static MUST_USE_RESULT Handle < Object > | SetLengthWithoutNormalize (Handle< FixedArrayBase > store, Handle< JSArray > array, Handle< Object > length_object, uint32_t length) |
static MUST_USE_RESULT MaybeObject * | DeleteCommon (JSObject *obj, uint32_t key, JSReceiver::DeleteMode mode) |
static MUST_USE_RESULT Handle < Object > | DeleteCommon (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode) |
static void | CopyElementsImpl (Handle< FixedArrayBase > from, uint32_t from_start, Handle< FixedArrayBase > to, ElementsKind from_kind, uint32_t to_start, int packed_size, int copy_size) |
Static Public Member Functions inherited from ElementsAccessor | |
static ElementsAccessor * | ForKind (ElementsKind elements_kind) |
static ElementsAccessor * | ForArray (FixedArrayBase *array) |
static void | InitializeOncePerProcess () |
static void | TearDown () |
Static Protected Member Functions | |
static MUST_USE_RESULT MaybeObject * | GetImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *store) |
static MUST_USE_RESULT PropertyAttributes | GetAttributesImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT PropertyType | GetTypeImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *store) |
static MUST_USE_RESULT AccessorPair * | GetAccessorPairImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *store) |
static bool | HasElementImpl (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) |
static uint32_t | GetKeyForIndexImpl (FixedArrayBase *store, uint32_t index) |
Static Protected Member Functions inherited from ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > > | |
static void | ValidateContents (JSObject *holder, int length) |
static void | ValidateImpl (JSObject *holder) |
static bool | HasElementImpl (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT MaybeObject * | GetImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT PropertyAttributes | GetAttributesImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT PropertyType | GetTypeImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT AccessorPair * | GetAccessorPairImpl (Object *receiver, JSObject *obj, uint32_t key, FixedArrayBase *backing_store) |
static MUST_USE_RESULT Handle < Object > | SetLengthImpl (Handle< JSObject > obj, Handle< Object > length, Handle< FixedArrayBase > backing_store) |
static void | SetFastElementsCapacityAndLength (Handle< JSObject > obj, int capacity, int length) |
static void | CopyElementsImpl (Handle< FixedArrayBase > from, uint32_t from_start, Handle< FixedArrayBase > to, ElementsKind from_kind, uint32_t to_start, int packed_size, int copy_size) |
static uint32_t | GetCapacityImpl (FixedArrayBase *backing_store) |
static uint32_t | GetKeyForIndexImpl (FixedArrayBase *backing_store, uint32_t index) |
Friends | |
class | ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > > |
Additional Inherited Members | |
Static Public Attributes inherited from ElementsAccessor | |
static const int | kCopyToEnd = -1 |
static const int | kCopyToEndAndInitializeToHole = -2 |
Protected Types inherited from ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > > | |
typedef ElementsKindTraits < DICTIONARY_ELEMENTS > | ElementsTraits |
typedef ElementsKindTraits < DICTIONARY_ELEMENTS > ::BackingStore | BackingStore |
Definition at line 1423 of file elements.cc.
|
inlineexplicit |
Definition at line 1427 of file elements.cc.
|
inlinestatic |
Definition at line 1557 of file elements.cc.
References UNREACHABLE.
|
inlineprotectedvirtual |
Implements ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > >.
Definition at line 1572 of file elements.cc.
References DictionaryElementsAccessor::DeleteCommon(), v8::internal::mode(), and obj.
|
inlinestatic |
Definition at line 1502 of file elements.cc.
References FixedArray::cast(), SeededNumberDictionary::cast(), Dictionary< Shape, Key >::DeleteProperty(), Isolate::factory(), HashTable< Shape, Key >::FindEntry(), FixedArray::get(), JSObject::GetElementsKind(), HeapObject::GetIsolate(), v8::internal::HandleVector(), Isolate::heap(), HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound, ElementsAccessor::name(), Factory::NewNumberFromUint(), Factory::NewTypeError(), v8::internal::NULL, Dictionary< Shape, Key >::Shrink(), v8::internal::SLOPPY_ARGUMENTS_ELEMENTS, JSReceiver::STRICT_DELETION, and Isolate::Throw().
Referenced by DictionaryElementsAccessor::Delete(), SloppyArgumentsElementsAccessor::Delete(), and DictionaryElementsAccessor::DeleteCommon().
|
inlinestatic |
Definition at line 1548 of file elements.cc.
References CALL_HEAP_FUNCTION, DictionaryElementsAccessor::DeleteCommon(), and v8::internal::Object.
|
inlinestaticprotected |
Definition at line 1628 of file elements.cc.
References v8::internal::CALLBACKS, SeededNumberDictionary::cast(), AccessorPair::cast(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::FindEntry(), HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound, v8::internal::NULL, and Dictionary< Shape, Key >::ValueAt().
|
inlinestaticprotected |
Definition at line 1601 of file elements.cc.
References ABSENT, SeededNumberDictionary::cast(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::FindEntry(), and HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound.
|
inlinestaticprotected |
Definition at line 1579 of file elements.cc.
References v8::internal::CALLBACKS, SeededNumberDictionary::cast(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::FindEntry(), HeapObject::GetHeap(), HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound, and Dictionary< Shape, Key >::ValueAt().
|
inlinestaticprotected |
Definition at line 1651 of file elements.cc.
References Smi::cast(), SeededNumberDictionary::cast(), HashTable< Shape, Key >::KeyAt(), and Smi::value().
|
inlinestaticprotected |
Definition at line 1615 of file elements.cc.
References SeededNumberDictionary::cast(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::FindEntry(), HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound, and v8::internal::NONEXISTENT.
|
inlinestaticprotected |
Definition at line 1643 of file elements.cc.
References SeededNumberDictionary::cast(), HashTable< Shape, Key >::FindEntry(), and HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound.
|
inlinestatic |
Definition at line 1433 of file elements.cc.
References HashTable< Shape, Key >::Capacity(), SeededNumberDictionary::cast(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::ElementsRemoved(), HeapObject::GetHeap(), HashTable< Shape, Key >::KeyAt(), Object::Number(), Heap::NumberFromUint32(), obj, JSObject::ResetElements(), and Dictionary< Shape, Key >::SetEntry().
Referenced by ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), and DictionaryElementsAccessor::SetLengthWithoutNormalize().
|
inlinestatic |
Definition at line 1491 of file elements.cc.
References CALL_HEAP_FUNCTION, v8::internal::Object, and DictionaryElementsAccessor::SetLengthWithoutNormalize().
|
friend |
Definition at line 1570 of file elements.cc.