|
static const int | kCopyToEnd = -1 |
|
static const int | kCopyToEndAndInitializeToHole = -2 |
|
typedef KindTraits::BackingStore | BackingStore |
|
typedef KindTraits | ElementsTraits |
|
typedef ElementsTraitsParam::BackingStore | BackingStore |
|
virtual MaybeHandle< Object > | Delete (Handle< JSObject > obj, uint32_t key, JSReceiver::DeleteMode mode) FINAL OVERRIDE |
|
| 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< Object > | Get (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< AccessorPair > | GetAccessorPair (Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store) FINAL OVERRIDE |
|
virtual MUST_USE_RESULT MaybeHandle< Object > | SetLength (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< FixedArray > | AddElementsToFixedArray (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 |
|
static Handle< Object > | SetLengthWithoutNormalize (Handle< FixedArrayBase > backing_store, Handle< JSArray > array, Handle< Object > length_object, uint32_t length) |
|
static Handle< Object > | DeleteCommon (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 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< Object > | GetImpl (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< AccessorPair > | GetAccessorPairImpl (Handle< Object > receiver, Handle< JSObject > obj, uint32_t key, Handle< FixedArrayBase > backing_store) |
|
static MUST_USE_RESULT MaybeHandle< 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 (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) |
|
template<typename FastElementsAccessorSubclass, typename KindTraits>
class v8::internal::FastSmiOrObjectElementsAccessor< FastElementsAccessorSubclass, KindTraits >
Definition at line 1068 of file elements.cc.
template<typename FastElementsAccessorSubclass , typename KindTraits >
Definition at line 1080 of file elements.cc.
1086 switch (from_kind) {
1092 to_start, copy_size);
1098 from, from_start,
to, to_kind, to_start, copy_size);
1109 FixedArray* parameter_map = FixedArray::cast(from);
1110 FixedArrayBase* arguments = FixedArrayBase::cast(parameter_map->get(1));
1113 to_start, packed_size, copy_size);
1116 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
1117 case EXTERNAL_##TYPE##_ELEMENTS: \
1118 case TYPE##_ELEMENTS: \
1121 #undef TYPED_ARRAY_CASE
static void CopyElementsImpl(FixedArrayBase *from, uint32_t from_start, FixedArrayBase *to, ElementsKind from_kind, uint32_t to_start, int packed_size, int copy_size)
#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
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, true > AllowHeapAllocation
static ElementsKind ElementsKindForArray(FixedArrayBase *array)
@ FAST_HOLEY_DOUBLE_ELEMENTS
@ SLOPPY_ARGUMENTS_ELEMENTS
@ FAST_HOLEY_SMI_ELEMENTS
static void CopyDictionaryToObjectElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, ElementsKind to_kind, uint32_t to_start, int raw_copy_size)
static void CopyDoubleToObjectElements(FixedArrayBase *from_base, uint32_t from_start, FixedArrayBase *to_base, ElementsKind to_kind, uint32_t to_start, int raw_copy_size)
static void CopyObjectToObjectElements(FixedArrayBase *from_base, ElementsKind from_kind, uint32_t from_start, FixedArrayBase *to_base, ElementsKind to_kind, uint32_t to_start, int raw_copy_size)
References v8::internal::CopyDictionaryToObjectElements(), v8::internal::CopyDoubleToObjectElements(), v8::internal::CopyObjectToObjectElements(), v8::internal::DICTIONARY_ELEMENTS, v8::internal::ElementsKindForArray(), 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::FixedArray::get(), v8::internal::SLOPPY_ARGUMENTS_ELEMENTS, to(), TYPED_ARRAY_CASE, and TYPED_ARRAYS.