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
TypedElementsAccessor< Kind > Class Template Reference
Inheritance diagram for TypedElementsAccessor< Kind >:
Collaboration diagram for TypedElementsAccessor< Kind >:

Public Member Functions

 TypedElementsAccessor (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())
 

Protected Types

typedef ElementsKindTraits
< Kind >::BackingStore 
BackingStore
 
typedef TypedElementsAccessor
< Kind > 
AccessorClass
 
- Protected Types inherited from ElementsAccessorBase< TypedElementsAccessor< Kind >, ElementsKindTraits< Kind > >
typedef ElementsKindTraits< Kind > ElementsTraits
 
typedef ElementsKindTraits
< Kind >::BackingStore 
BackingStore
 

Protected Member Functions

virtual MUST_USE_RESULT Handle
< Object
Delete (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode) V8_FINAL V8_OVERRIDE
 
- Protected Member Functions inherited from ElementsAccessorBase< TypedElementsAccessor< Kind >, ElementsKindTraits< Kind > >
 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 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 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 Handle
< Object
SetLengthImpl (Handle< JSObject > obj, Handle< Object > length, Handle< FixedArrayBase > backing_store)
 
static bool HasElementImpl (Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store)
 
- Static Protected Member Functions inherited from ElementsAccessorBase< TypedElementsAccessor< Kind >, ElementsKindTraits< Kind > >
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< AccessorClass, ElementsKindTraits< Kind > >
 

Additional Inherited Members

- 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<ElementsKind Kind>
class v8::internal::TypedElementsAccessor< Kind >

Definition at line 1333 of file elements.cc.

Member Typedef Documentation

typedef TypedElementsAccessor<Kind> AccessorClass
protected

Definition at line 1343 of file elements.cc.

typedef ElementsKindTraits<Kind>::BackingStore BackingStore
protected

Definition at line 1342 of file elements.cc.

Constructor & Destructor Documentation

TypedElementsAccessor ( const char *  name)
inlineexplicit

Definition at line 1337 of file elements.cc.

Member Function Documentation

virtual MUST_USE_RESULT Handle<Object> Delete ( Handle< JSObject obj,
uint32_t  key,
JSReceiver::DeleteMode  mode 
)
inlineprotectedvirtual
static MUST_USE_RESULT PropertyAttributes GetAttributesImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected
static MUST_USE_RESULT MaybeObject* GetImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected
static MUST_USE_RESULT PropertyType GetTypeImpl ( Object receiver,
JSObject obj,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected
static bool HasElementImpl ( Object receiver,
JSObject holder,
uint32_t  key,
FixedArrayBase backing_store 
)
inlinestaticprotected
static MUST_USE_RESULT Handle<Object> SetLengthImpl ( Handle< JSObject obj,
Handle< Object length,
Handle< FixedArrayBase backing_store 
)
inlinestaticprotected

Definition at line 1378 of file elements.cc.

References obj, and UNREACHABLE.

Friends And Related Function Documentation

friend class ElementsAccessorBase< AccessorClass,ElementsKindTraits< Kind > >
friend

Definition at line 1346 of file elements.cc.


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