v8
3.14.5(node0.10.28)
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 |
MUST_USE_RESULT MaybeObject * | CopyElements (JSObject *from_holder, FixedArrayBase *to, ElementsKind to_kind, FixedArrayBase *from=NULL) |
Static Public Member Functions | |
static MUST_USE_RESULT MaybeObject * | SetLengthWithoutNormalize (SeededNumberDictionary *dict, JSArray *array, Object *length_object, uint32_t length) |
static MUST_USE_RESULT MaybeObject * | DeleteCommon (JSObject *obj, uint32_t key, JSReceiver::DeleteMode mode) |
static MUST_USE_RESULT MaybeObject * | CopyElementsImpl (FixedArrayBase *from, uint32_t from_start, FixedArrayBase *to, ElementsKind to_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 () |
Protected Member Functions | |
virtual MUST_USE_RESULT MaybeObject * | Delete (JSObject *obj, uint32_t key, JSReceiver::DeleteMode mode) |
Protected Member Functions inherited from ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > > | |
ElementsAccessorBase (const char *name) | |
virtual ElementsKind | kind () const |
virtual void | Validate (JSObject *holder) |
virtual bool | HasElement (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) |
virtual MUST_USE_RESULT MaybeObject * | Get (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) |
virtual MUST_USE_RESULT MaybeObject * | SetLength (JSArray *array, Object *length) |
virtual MUST_USE_RESULT MaybeObject * | SetCapacityAndLength (JSArray *array, int capacity, int length) |
virtual MUST_USE_RESULT MaybeObject * | CopyElements (JSObject *from_holder, uint32_t from_start, FixedArrayBase *to, ElementsKind to_kind, uint32_t to_start, int copy_size, FixedArrayBase *from) |
virtual MUST_USE_RESULT MaybeObject * | AddElementsToFixedArray (Object *receiver, JSObject *holder, FixedArray *to, FixedArrayBase *from) |
virtual uint32_t | GetCapacity (FixedArrayBase *backing_store) |
virtual uint32_t | GetKeyForIndex (FixedArrayBase *backing_store, uint32_t index) |
Static Protected Member Functions | |
static MUST_USE_RESULT MaybeObject * | GetImpl (Object *receiver, JSObject *obj, uint32_t key, SeededNumberDictionary *backing_store) |
static bool | HasElementImpl (Object *receiver, JSObject *holder, uint32_t key, SeededNumberDictionary *backing_store) |
static uint32_t | GetKeyForIndexImpl (SeededNumberDictionary *dict, 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, BackingStore *backing_store) |
static MUST_USE_RESULT MaybeObject * | GetImpl (Object *receiver, JSObject *obj, uint32_t key, BackingStore *backing_store) |
static MUST_USE_RESULT MaybeObject * | SetLengthImpl (JSObject *obj, Object *length, BackingStore *backing_store) |
static MUST_USE_RESULT MaybeObject * | SetFastElementsCapacityAndLength (JSObject *obj, int capacity, int length) |
static MUST_USE_RESULT MaybeObject * | CopyElementsImpl (FixedArrayBase *from, uint32_t from_start, FixedArrayBase *to, ElementsKind to_kind, uint32_t to_start, int packed_size, int copy_size) |
static uint32_t | GetCapacityImpl (BackingStore *backing_store) |
static uint32_t | GetKeyForIndexImpl (BackingStore *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 1256 of file elements.cc.
|
inlineexplicit |
Definition at line 1260 of file elements.cc.
|
inlinestatic |
Definition at line 1367 of file elements.cc.
References FixedArray::cast(), FixedDoubleArray::cast(), SeededNumberDictionary::cast(), v8::internal::FAST_DOUBLE_ELEMENTS, v8::internal::FAST_ELEMENTS, v8::internal::FAST_HOLEY_DOUBLE_ELEMENTS, v8::internal::FAST_HOLEY_ELEMENTS, v8::internal::FAST_HOLEY_SMI_ELEMENTS, v8::internal::FAST_SMI_ELEMENTS, HeapObject::GetHeap(), and UNREACHABLE.
|
inlineprotectedvirtual |
Implements ElementsAccessorBase< DictionaryElementsAccessor, ElementsKindTraits< DICTIONARY_ELEMENTS > >.
Definition at line 1400 of file elements.cc.
References DictionaryElementsAccessor::DeleteCommon().
|
inlinestatic |
Definition at line 1322 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::NON_STRICT_ARGUMENTS_ELEMENTS, v8::internal::NULL, Dictionary< Shape, Key >::Shrink(), JSReceiver::STRICT_DELETION, and Isolate::Throw().
Referenced by DictionaryElementsAccessor::Delete(), and NonStrictArgumentsElementsAccessor::Delete().
|
inlinestaticprotected |
|
inlinestaticprotected |
Definition at line 1435 of file elements.cc.
References Smi::cast(), HashTable< Shape, Key >::KeyAt(), and Smi::value().
|
inlinestaticprotected |
Definition at line 1427 of file elements.cc.
References HashTable< Shape, Key >::FindEntry(), and HashTable< SeededNumberDictionaryShape, uint32_t >::kNotFound.
|
inlinestatic |
Definition at line 1266 of file elements.cc.
References HashTable< Shape, Key >::Capacity(), Dictionary< Shape, Key >::DetailsAt(), HashTable< Shape, Key >::ElementsRemoved(), HeapObject::GetHeap(), HashTable< Shape, Key >::KeyAt(), Object::Number(), Heap::NumberFromUint32(), JSObject::ResetElements(), and Dictionary< Shape, Key >::SetEntry().
Referenced by ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl().
|
friend |
Definition at line 1398 of file elements.cc.