v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam > Class Template Referenceabstract
Inheritance diagram for ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >:
Collaboration diagram for ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >:

Protected Types

typedef ElementsTraitsParam ElementsTraits
 
typedef
ElementsTraitsParam::BackingStore 
BackingStore
 

Protected Member Functions

 ElementsAccessorBase (const char *name)
 
virtual ElementsKind kind () const V8_FINAL V8_OVERRIDE
 
virtual void Validate (JSObject *holder) V8_FINAL V8_OVERRIDE
 
virtual bool HasElement (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT Handle
< Object
Get (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT
MaybeObject * 
Get (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT
PropertyAttributes 
GetAttributes (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT
PropertyType 
GetType (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT
AccessorPair
GetAccessorPair (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT Handle
< Object
SetLength (Handle< JSArray > array, Handle< Object > length) V8_FINAL V8_OVERRIDE
 
virtual void SetCapacityAndLength (Handle< JSArray > array, int capacity, int length) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT Handle
< Object
Delete (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode) V8_OVERRIDE=0
 
virtual void CopyElements (Handle< JSObject > from_holder, uint32_t from_start, ElementsKind from_kind, Handle< FixedArrayBase > to, uint32_t to_start, int copy_size, Handle< FixedArrayBase > from) V8_FINAL V8_OVERRIDE
 
virtual MUST_USE_RESULT
MaybeObject * 
AddElementsToFixedArray (Object *receiver, JSObject *holder, FixedArray *to, FixedArrayBase *from) V8_FINAL V8_OVERRIDE
 
virtual uint32_t GetCapacity (FixedArrayBase *backing_store) V8_FINAL V8_OVERRIDE
 
virtual uint32_t GetKeyForIndex (FixedArrayBase *backing_store, uint32_t index) V8_FINAL V8_OVERRIDE
 

Static Protected Member Functions

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)
 

Additional Inherited Members

- 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 inherited from ElementsAccessor
static ElementsAccessorForKind (ElementsKind elements_kind)
 
static ElementsAccessorForArray (FixedArrayBase *array)
 
static void InitializeOncePerProcess ()
 
static void TearDown ()
 
- Static Public Attributes inherited from ElementsAccessor
static const int kCopyToEnd = -1
 
static const int kCopyToEndAndInitializeToHole = -2
 

Detailed Description

template<typename ElementsAccessorSubclass, typename ElementsTraitsParam>
class v8::internal::ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >

Definition at line 578 of file elements.cc.

Member Typedef Documentation

typedef ElementsTraitsParam::BackingStore BackingStore
protected

Definition at line 584 of file elements.cc.

typedef ElementsTraitsParam ElementsTraits
protected

Definition at line 583 of file elements.cc.

Constructor & Destructor Documentation

ElementsAccessorBase ( const char *  name)
inlineexplicitprotected

Definition at line 580 of file elements.cc.

Member Function Documentation

virtual MUST_USE_RESULT MaybeObject* AddElementsToFixedArray ( Object receiver,
JSObject holder,
FixedArray to,
FixedArrayBase from 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 817 of file elements.cc.

virtual void CopyElements ( Handle< JSObject from_holder,
uint32_t  from_start,
ElementsKind  from_kind,
Handle< FixedArrayBase to,
uint32_t  to_start,
int  copy_size,
Handle< FixedArrayBase from 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 789 of file elements.cc.

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 
)
inlinestaticprotected

Definition at line 779 of file elements.cc.

virtual MUST_USE_RESULT Handle<Object> Get ( Handle< Object receiver,
Handle< JSObject holder,
uint32_t  key,
Handle< FixedArrayBase backing_store 
)
inlineprotectedvirtual
virtual MUST_USE_RESULT MaybeObject* Get ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 648 of file elements.cc.

virtual MUST_USE_RESULT AccessorPair* GetAccessorPair ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 727 of file elements.cc.

static MUST_USE_RESULT AccessorPair* GetAccessorPairImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 739 of file elements.cc.

virtual MUST_USE_RESULT PropertyAttributes GetAttributes ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 680 of file elements.cc.

static MUST_USE_RESULT PropertyAttributes GetAttributesImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 692 of file elements.cc.

virtual uint32_t GetCapacity ( FixedArrayBase backing_store)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 899 of file elements.cc.

static uint32_t GetCapacityImpl ( FixedArrayBase backing_store)
inlinestaticprotected

Definition at line 895 of file elements.cc.

static MUST_USE_RESULT MaybeObject* GetImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 671 of file elements.cc.

virtual uint32_t GetKeyForIndex ( FixedArrayBase backing_store,
uint32_t  index 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 909 of file elements.cc.

static uint32_t GetKeyForIndexImpl ( FixedArrayBase backing_store,
uint32_t  index 
)
inlinestaticprotected

Definition at line 904 of file elements.cc.

virtual MUST_USE_RESULT PropertyType GetType ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 703 of file elements.cc.

static MUST_USE_RESULT PropertyType GetTypeImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 715 of file elements.cc.

virtual bool HasElement ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 624 of file elements.cc.

static bool HasElementImpl ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 616 of file elements.cc.

virtual ElementsKind kind ( ) const
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 586 of file elements.cc.

virtual void SetCapacityAndLength ( Handle< JSArray array,
int  capacity,
int  length 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 759 of file elements.cc.

static void SetFastElementsCapacityAndLength ( Handle< JSObject obj,
int  capacity,
int  length 
)
inlinestaticprotected

Definition at line 767 of file elements.cc.

virtual MUST_USE_RESULT Handle<Object> SetLength ( Handle< JSArray array,
Handle< Object length 
)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 747 of file elements.cc.

virtual void Validate ( JSObject holder)
inlineprotectedvirtual

Implements ElementsAccessor.

Definition at line 612 of file elements.cc.

static void ValidateContents ( JSObject holder,
int  length 
)
inlinestaticprotected

Definition at line 590 of file elements.cc.

static void ValidateImpl ( JSObject holder)
inlinestaticprotected

Definition at line 593 of file elements.cc.


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