V8 Project
v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits > Class Template Reference
+ Inheritance diagram for v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >:
+ Collaboration diagram for v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >:

Public Member Functions

 FastDoubleElementsAccessor (const char *name)
 
- Public Member Functions inherited from v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >
 FastElementsAccessor (const char *name)
 
- Public Member Functions inherited from v8::internal::ElementsAccessor
 ElementsAccessor (const char *name)
 
virtual ~ElementsAccessor ()
 
const char * name () const
 
bool HasElement (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key)
 
MUST_USE_RESULT MaybeHandle< ObjectGet (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key)
 
MUST_USE_RESULT PropertyAttributes GetAttributes (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key)
 
MUST_USE_RESULT MaybeHandle< AccessorPairGetAccessorPair (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key)
 
void CopyElements (Handle< JSObject > from_holder, Handle< FixedArrayBase > to, ElementsKind from_kind)
 
MUST_USE_RESULT MaybeHandle< FixedArrayAddElementsToFixedArray (Handle< Object > receiver, Handle< JSObject > holder, Handle< FixedArray > to)
 

Static Public Member Functions

static void SetFastElementsCapacityAndLength (Handle< JSObject > obj, uint32_t capacity, uint32_t length)
 
- Static Public Member Functions inherited from v8::internal::ElementsAccessor
static ElementsAccessorForKind (ElementsKind elements_kind)
 
static ElementsAccessorForArray (Handle< FixedArrayBase > array)
 
static void InitializeOncePerProcess ()
 
static void TearDown ()
 

Static Protected Member Functions

static void CopyElementsImpl (FixedArrayBase *from, uint32_t from_start, FixedArrayBase *to, ElementsKind from_kind, uint32_t to_start, int packed_size, int copy_size)
 
- Static Protected Member Functions inherited from v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >
static Handle< ObjectSetLengthWithoutNormalize (Handle< FixedArrayBase > backing_store, Handle< JSArray > array, Handle< Object > length_object, uint32_t length)
 
static Handle< ObjectDeleteCommon (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode)
 
static bool HasElementImpl (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store)
 
static void ValidateContents (Handle< JSObject > holder, int length)
 
- Static Protected Member Functions inherited from v8::internal::ElementsAccessorBase< FastElementsAccessorSubclass, KindTraits >
static void ValidateContents (Handle< JSObject > holder, int length)
 
static void ValidateImpl (Handle< JSObject > holder)
 
static bool HasElementImpl (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetImpl (Handle< Object > receiver, Handle< JSObject > obj, uint32_t key, Handle< FixedArrayBase > backing_store)
 
static MUST_USE_RESULT PropertyAttributes GetAttributesImpl (Handle< Object > receiver, Handle< JSObject > obj, uint32_t key, Handle< FixedArrayBase > backing_store)
 
static MUST_USE_RESULT MaybeHandle< AccessorPairGetAccessorPairImpl (Handle< Object > receiver, Handle< JSObject > obj, uint32_t key, Handle< FixedArrayBase > backing_store)
 
static MUST_USE_RESULT MaybeHandle< ObjectSetLengthImpl (Handle< JSObject > obj, Handle< Object > length, Handle< FixedArrayBase > backing_store)
 
static void SetFastElementsCapacityAndLength (Handle< JSObject > obj, int capacity, int length)
 
static void CopyElementsImpl (FixedArrayBase *from, uint32_t from_start, FixedArrayBase *to, ElementsKind from_kind, uint32_t to_start, int packed_size, int copy_size)
 
static uint32_t GetCapacityImpl (Handle< FixedArrayBase > backing_store)
 
static uint32_t GetKeyForIndexImpl (Handle< FixedArrayBase > backing_store, uint32_t index)
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::ElementsAccessor
static const int kCopyToEnd = -1
 
static const int kCopyToEndAndInitializeToHole = -2
 
- Protected Types inherited from v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >
typedef KindTraits::BackingStore BackingStore
 
- Protected Types inherited from v8::internal::ElementsAccessorBase< FastElementsAccessorSubclass, KindTraits >
typedef KindTraits ElementsTraits
 
typedef ElementsTraitsParam::BackingStore BackingStore
 
- Protected Member Functions inherited from v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >
virtual MaybeHandle< ObjectDelete (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode) FINAL OVERRIDE
 
- Protected Member Functions inherited from v8::internal::ElementsAccessorBase< FastElementsAccessorSubclass, KindTraits >
 ElementsAccessorBase (const char *name)
 
virtual ElementsKind kind () const FINAL OVERRIDE
 
virtual void Validate (Handle< JSObject > holder) FINAL OVERRIDE
 
virtual bool HasElement (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) FINAL OVERRIDE
 
virtual MUST_USE_RESULT MaybeHandle< ObjectGet (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) FINAL OVERRIDE
 
virtual MUST_USE_RESULT PropertyAttributes GetAttributes (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) FINAL OVERRIDE
 
virtual MUST_USE_RESULT MaybeHandle< AccessorPairGetAccessorPair (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) FINAL OVERRIDE
 
virtual MUST_USE_RESULT MaybeHandle< ObjectSetLength (Handle< JSArray > array, Handle< Object > length) FINAL OVERRIDE
 
virtual void SetCapacityAndLength (Handle< JSArray > array, int capacity, int length) FINAL OVERRIDE
 
virtual void CopyElements (Handle< FixedArrayBase > from, uint32_t from_start, ElementsKind from_kind, Handle< FixedArrayBase > to, uint32_t to_start, int copy_size) FINAL OVERRIDE
 
virtual void CopyElements (JSObject *from_holder, uint32_t from_start, ElementsKind from_kind, Handle< FixedArrayBase > to, uint32_t to_start, int copy_size) FINAL OVERRIDE
 
virtual MaybeHandle< FixedArrayAddElementsToFixedArray (Handle< Object > receiver, Handle< JSObject > holder, Handle< FixedArray > to, Handle< FixedArrayBase > from) FINAL OVERRIDE
 
virtual uint32_t GetCapacity (Handle< FixedArrayBase > backing_store) FINAL OVERRIDE
 
virtual uint32_t GetKeyForIndex (Handle< FixedArrayBase > backing_store, uint32_t index) FINAL OVERRIDE
 

Detailed Description

template<typename FastElementsAccessorSubclass, typename KindTraits>
class v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >

Definition at line 1190 of file elements.cc.

Constructor & Destructor Documentation

◆ FastDoubleElementsAccessor()

template<typename FastElementsAccessorSubclass , typename KindTraits >
v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >::FastDoubleElementsAccessor ( const char *  name)
inlineexplicit

Definition at line 1193 of file elements.cc.

1194  : FastElementsAccessor<FastElementsAccessorSubclass,
1195  KindTraits>(name) {}
const char * name() const
Definition: elements.h:24
FastElementsAccessor(const char *name)
Definition: elements.cc:876

Member Function Documentation

◆ CopyElementsImpl()

template<typename FastElementsAccessorSubclass , typename KindTraits >
static void v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >::CopyElementsImpl ( FixedArrayBase from,
uint32_t  from_start,
FixedArrayBase to,
ElementsKind  from_kind,
uint32_t  to_start,
int  packed_size,
int  copy_size 
)
inlinestaticprotected

Definition at line 1204 of file elements.cc.

1207  {
1208  DisallowHeapAllocation no_allocation;
1209  switch (from_kind) {
1210  case FAST_SMI_ELEMENTS:
1211  CopyPackedSmiToDoubleElements(from, from_start, to, to_start,
1212  packed_size, copy_size);
1213  break;
1215  CopySmiToDoubleElements(from, from_start, to, to_start, copy_size);
1216  break;
1217  case FAST_DOUBLE_ELEMENTS:
1219  CopyDoubleToDoubleElements(from, from_start, to, to_start, copy_size);
1220  break;
1221  case FAST_ELEMENTS:
1222  case FAST_HOLEY_ELEMENTS:
1223  CopyObjectToDoubleElements(from, from_start, to, to_start, copy_size);
1224  break;
1225  case DICTIONARY_ELEMENTS:
1226  CopyDictionaryToDoubleElements(from, from_start, to, to_start,
1227  copy_size);
1228  break;
1230  UNREACHABLE();
1231 
1232 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
1233  case EXTERNAL_##TYPE##_ELEMENTS: \
1234  case TYPE##_ELEMENTS: \
1235  UNREACHABLE();
1237 #undef TYPED_ARRAY_CASE
1238  }
1239  }
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file
#define UNREACHABLE()
Definition: logging.h:30
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
Definition: assert-scope.h:110
static void CopyDoubleToDoubleElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, uint32_t to_start, int raw_copy_size)
Definition: elements.cc:301
@ FAST_HOLEY_DOUBLE_ELEMENTS
Definition: elements-kind.h:27
@ SLOPPY_ARGUMENTS_ELEMENTS
Definition: elements-kind.h:31
@ FAST_HOLEY_SMI_ELEMENTS
Definition: elements-kind.h:17
static void CopySmiToDoubleElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, uint32_t to_start, int raw_copy_size)
Definition: elements.cc:334
static void CopyDictionaryToDoubleElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, uint32_t to_start, int raw_copy_size)
Definition: elements.cc:441
static void CopyObjectToDoubleElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, uint32_t to_start, int raw_copy_size)
Definition: elements.cc:407
static void CopyPackedSmiToDoubleElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, uint32_t to_start, int packed_size, int raw_copy_size)
Definition: elements.cc:368
#define TYPED_ARRAYS(V)
Definition: objects.h:4433

References v8::internal::CopyDictionaryToDoubleElements(), v8::internal::CopyDoubleToDoubleElements(), v8::internal::CopyObjectToDoubleElements(), v8::internal::CopyPackedSmiToDoubleElements(), v8::internal::CopySmiToDoubleElements(), v8::internal::DICTIONARY_ELEMENTS, 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, v8::internal::SLOPPY_ARGUMENTS_ELEMENTS, to(), TYPED_ARRAY_CASE, TYPED_ARRAYS, and UNREACHABLE.

+ Here is the call graph for this function:

◆ SetFastElementsCapacityAndLength()

template<typename FastElementsAccessorSubclass , typename KindTraits >
static void v8::internal::FastDoubleElementsAccessor< FastElementsAccessorSubclass, KindTraits >::SetFastElementsCapacityAndLength ( Handle< JSObject obj,
uint32_t  capacity,
uint32_t  length 
)
inlinestatic

Definition at line 1197 of file elements.cc.

1199  {
1200  JSObject::SetFastDoubleElementsCapacityAndLength(obj, capacity, length);
1201  }
static void SetFastDoubleElementsCapacityAndLength(Handle< JSObject > object, int capacity, int length)
Definition: objects.cc:11044

References v8::internal::JSObject::SetFastDoubleElementsCapacityAndLength().

+ Here is the call graph for this function:

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