28 #ifndef V8_ELEMENTS_H_
29 #define V8_ELEMENTS_H_
47 const char*
name()
const {
return name_; }
155 uint32_t source_start,
158 uint32_t destination_start,
180 return elements_accessors_[elements_kind];
212 bool allow_appending =
false);
219 #endif // V8_ELEMENTS_H_
virtual MUST_USE_RESULT AccessorPair * GetAccessorPair(Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store=NULL)=0
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
virtual MUST_USE_RESULT PropertyAttributes GetAttributes(Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store=NULL)=0
virtual MUST_USE_RESULT Handle< Object > Get(Handle< Object > receiver, Handle< JSObject > holder, uint32_t key, Handle< FixedArrayBase > backing_store=Handle< FixedArrayBase >::null())=0
virtual ElementsKind kind() const =0
void CheckArrayAbuse(JSObject *obj, const char *op, uint32_t key, bool allow_appending)
Handle< Object > ArrayConstructInitializeElements(Handle< JSArray > array, Arguments *args)
#define ASSERT(condition)
virtual MUST_USE_RESULT Handle< Object > SetLength(Handle< JSArray > holder, Handle< Object > new_length)=0
virtual MUST_USE_RESULT PropertyType GetType(Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store=NULL)=0
static const int kCopyToEnd
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV 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 mode(MIPS only)") DEFINE_string(expose_natives_as
virtual MUST_USE_RESULT MaybeObject * AddElementsToFixedArray(Object *receiver, JSObject *holder, FixedArray *to, FixedArrayBase *from=NULL)=0
virtual void Validate(JSObject *obj)=0
ElementsAccessor(const char *name)
static void InitializeOncePerProcess()
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
static ElementsAccessor * ForArray(FixedArrayBase *array)
virtual bool HasElement(Object *receiver, JSObject *holder, uint32_t key, FixedArrayBase *backing_store=NULL)=0
void CopyElements(Handle< JSObject > from_holder, Handle< FixedArrayBase > to, ElementsKind from_kind, Handle< FixedArrayBase > from=Handle< FixedArrayBase >::null())
virtual uint32_t GetKeyForIndex(FixedArrayBase *backing_store, uint32_t index)=0
static ElementsAccessor * ForKind(ElementsKind elements_kind)
const int kElementsKindCount
virtual MUST_USE_RESULT Handle< Object > Delete(Handle< JSObject > holder, uint32_t key, JSReceiver::DeleteMode mode)=0
static const int kCopyToEndAndInitializeToHole
virtual void SetCapacityAndLength(Handle< JSArray > array, int capacity, int length)=0
virtual void CopyElements(Handle< JSObject > source_holder, uint32_t source_start, ElementsKind source_kind, Handle< FixedArrayBase > destination, uint32_t destination_start, int copy_size, Handle< FixedArrayBase > source=Handle< FixedArrayBase >::null())=0
virtual uint32_t GetCapacity(FixedArrayBase *backing_store)=0
virtual ~ElementsAccessor()
const char * name() const