V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::ElementsAccessor Class Referenceabstract

Public Member Functions

 ElementsAccessor (const char *name)
 
const charname () const
 
virtual void Validate (JSObject *obj)=0
 
virtual bool HasElement (JSObject *holder, uint32_t index, FixedArrayBase backing_store, PropertyFilter filter=ALL_PROPERTIES)=0
 
bool HasElement (JSObject *holder, uint32_t index, PropertyFilter filter=ALL_PROPERTIES)
 
virtual bool HasEntry (JSObject *holder, uint32_t entry)=0
 
virtual Handle< ObjectGet (Handle< JSObject > holder, uint32_t entry)=0
 
virtual bool HasAccessors (JSObject *holder)=0
 
virtual uint32_t NumberOfElements (JSObject *holder)=0
 
virtual void SetLength (Handle< JSArray > holder, uint32_t new_length)=0
 
virtual void CollectElementIndices (Handle< JSObject > object, Handle< FixedArrayBase > backing_store, KeyAccumulator *keys)=0
 
void CollectElementIndices (Handle< JSObject > object, KeyAccumulator *keys)
 
virtual Maybe< boolCollectValuesOrEntries (Isolate *isolate, Handle< JSObject > object, Handle< FixedArray > values_or_entries, bool get_entries, int *nof_items, PropertyFilter filter=ALL_PROPERTIES)=0
 
virtual MaybeHandle< FixedArrayPrependElementIndices (Handle< JSObject > object, Handle< FixedArrayBase > backing_store, Handle< FixedArray > keys, GetKeysConversion convert, PropertyFilter filter=ALL_PROPERTIES)=0
 
MaybeHandle< FixedArrayPrependElementIndices (Handle< JSObject > object, Handle< FixedArray > keys, GetKeysConversion convert, PropertyFilter filter=ALL_PROPERTIES)
 
virtual void AddElementsToKeyAccumulator (Handle< JSObject > receiver, KeyAccumulator *accumulator, AddKeyConversion convert)=0
 
virtual void TransitionElementsKind (Handle< JSObject > object, Handle< Map > map)=0
 
virtual void GrowCapacityAndConvert (Handle< JSObject > object, uint32_t capacity)=0
 
virtual bool GrowCapacity (Handle< JSObject > object, uint32_t index)=0
 
virtual void Set (Handle< JSObject > holder, uint32_t entry, Object *value)=0
 
virtual void Add (Handle< JSObject > object, uint32_t index, Handle< Object > value, PropertyAttributes attributes, uint32_t new_capacity)=0
 
virtual uint32_t Push (Handle< JSArray > receiver, Arguments *args, uint32_t push_size)=0
 
virtual uint32_t Unshift (Handle< JSArray > receiver, Arguments *args, uint32_t unshift_size)=0
 
virtual Handle< JSObjectSlice (Handle< JSObject > receiver, uint32_t start, uint32_t end)=0
 
virtual Handle< ObjectPop (Handle< JSArray > receiver)=0
 
virtual Handle< ObjectShift (Handle< JSArray > receiver)=0
 
virtual Handle< NumberDictionaryNormalize (Handle< JSObject > object)=0
 
virtual uint32_t GetCapacity (JSObject *holder, FixedArrayBase backing_store)=0
 
virtual ObjectFill (Handle< JSObject > receiver, Handle< Object > obj_value, uint32_t start, uint32_t end)=0
 
virtual Maybe< boolIncludesValue (Isolate *isolate, Handle< JSObject > receiver, Handle< Object > value, uint32_t start, uint32_t length)=0
 
virtual Maybe< int64_tIndexOfValue (Isolate *isolate, Handle< JSObject > receiver, Handle< Object > value, uint32_t start, uint32_t length)=0
 
virtual Maybe< int64_tLastIndexOfValue (Handle< JSObject > receiver, Handle< Object > value, uint32_t start)=0
 
virtual void Reverse (JSObject *receiver)=0
 
virtual void CopyElements (Isolate *isolate, Handle< FixedArrayBase > source, ElementsKind source_kind, Handle< FixedArrayBase > destination, int size)=0
 
virtual ObjectCopyElements (Handle< Object > source, Handle< JSObject > destination, size_t length, uint32_t offset=0)=0
 
virtual Handle< FixedArrayCreateListFromArrayLike (Isolate *isolate, Handle< JSObject > object, uint32_t length)=0
 
virtual void CopyTypedArrayElementsSlice (JSTypedArray *source, JSTypedArray *destination, size_t start, size_t end)=0
 

Static Public Member Functions

static ElementsAccessorForKind (ElementsKind elements_kind)
 
static void InitializeOncePerProcess ()
 
static void TearDown ()
 
static Handle< JSArrayConcat (Isolate *isolate, Arguments *args, uint32_t concat_size, uint32_t result_length)
 

Static Public Attributes

static const int kCopyToEnd = -1
 
static const int kCopyToEndAndInitializeToHole = -2
 

Protected Member Functions

virtual uint32_t GetEntryForIndex (Isolate *isolate, JSObject *holder, FixedArrayBase backing_store, uint32_t index)=0
 
virtual PropertyDetails GetDetails (JSObject *holder, uint32_t entry)=0
 
virtual void Reconfigure (Handle< JSObject > object, Handle< FixedArrayBase > backing_store, uint32_t entry, Handle< Object > value, PropertyAttributes attributes)=0
 
virtual void Delete (Handle< JSObject > holder, uint32_t entry)=0
 
virtual void CopyElements (JSObject *source_holder, uint32_t source_start, ElementsKind source_kind, Handle< FixedArrayBase > destination, uint32_t destination_start, int copy_size)=0
 

Friends

class LookupIterator
 

Detailed Description

Definition at line 19 of file elements.h.


The documentation for this class was generated from the following files: