5 #ifndef V8_GLOBAL_HANDLES_H_
6 #define V8_GLOBAL_HANDLES_H_
71 return id == other.
id;
88 return id == other.
id;
Interface for providing information about embedder's objects held by global handles.
General purpose unique identifier.
bool Exists(SingletonHandle singleton)
Handle< Object > CreateSingleton(Isolate *isolate, Object *object, SingletonHandle singleton)
List< Object ** > blocks_
List< int > new_space_indices_
Handle< Object > Get(int index)
DISALLOW_COPY_AND_ASSIGN(EternalHandles)
static const int kInvalidIndex
void PostGarbageCollectionProcessing(Heap *heap)
void IterateAllRoots(ObjectVisitor *visitor)
@ NUMBER_OF_SINGLETON_HANDLES
void Create(Isolate *isolate, Object *object, int *index)
int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]
void IterateNewSpaceRoots(ObjectVisitor *visitor)
Object ** GetLocation(int index)
Handle< Object > GetSingleton(SingletonHandle singleton)
GlobalHandles(Isolate *isolate)
List< ImplicitRefGroup * > implicit_ref_groups_
WeakCallbackData< v8::Value, void >::Callback WeakCallback
void RecordStats(HeapStats *stats)
bool IterateObjectGroups(ObjectVisitor *v, WeakSlotCallbackWithHeap can_skip)
void IterateAllRootsInNewSpaceWithClassIds(ObjectVisitor *v)
void IterateAllRoots(ObjectVisitor *v)
static void MakeWeak(Object **location, void *parameter, WeakCallback weak_callback)
List< ObjectGroup * > object_groups_
void IterateNewSpaceWeakIndependentRoots(ObjectVisitor *v)
static void * ClearWeakness(Object **location)
static bool IsWeak(Object **location)
int global_handles_count() const
void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo *info)
static void MarkIndependent(Object **location)
static bool IsIndependent(Object **location)
int number_of_global_handles_
DISALLOW_COPY_AND_ASSIGN(GlobalHandles)
List< ObjectGroup * > * object_groups()
void IterateNewSpaceStrongAndDependentRoots(ObjectVisitor *v)
void SetReference(HeapObject **parent, Object **child)
int NumberOfWeakHandles()
void AddObjectGroup(Object ***handles, size_t length, v8::RetainedObjectInfo *info)
int PostGarbageCollectionProcessing(GarbageCollector collector)
void IterateAllRootsWithClassIds(ObjectVisitor *v)
static void MarkPartiallyDependent(Object **location)
static bool IsNearDeath(Object **location)
int NumberOfGlobalObjectWeakHandles()
void IdentifyNewSpaceWeakIndependentHandles(WeakSlotCallbackWithHeap f)
void IterateStrongRoots(ObjectVisitor *v)
void RemoveObjectGroups()
void SetReferenceFromGroup(UniqueId id, Object **child)
int post_gc_processing_count_
List< Node * > new_space_nodes_
void IdentifyWeakHandles(WeakSlotCallback f)
static Handle< Object > CopyGlobal(Object **location)
void SetObjectGroupId(Object **handle, UniqueId id)
List< ImplicitRefGroup * > * implicit_ref_groups()
static const int kObjectGroupConnectionsCapacity
List< ObjectGroupConnection > object_group_connections_
static void Destroy(Object **location)
List< ObjectGroupConnection > implicit_ref_connections_
Handle< Object > Create(Object *value)
void IterateWeakRoots(ObjectVisitor *v)
List< ObjectGroupRetainerInfo > retainer_infos_
void RemoveImplicitRefGroups()
NodeBlock * first_used_block_
void ComputeObjectGroupsAndImplicitReferences()
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 NULL
#define DCHECK(condition)
bool(* WeakSlotCallback)(Object **pointer)
bool(* WeakSlotCallbackWithHeap)(Heap *heap, Object **pointer)
Handle< T > handle(T *t, Isolate *isolate)
Debugger support for the V8 JavaScript engine.
ImplicitRefGroup(HeapObject **parent, size_t length)
bool operator<(const ObjectGroupConnection &other) const
bool operator==(const ObjectGroupConnection &other) const
ObjectGroupConnection(UniqueId id, Object **object)
bool operator==(const ObjectGroupRetainerInfo &other) const
RetainedObjectInfo * info
bool operator<(const ObjectGroupRetainerInfo &other) const
ObjectGroupRetainerInfo(UniqueId id, RetainedObjectInfo *info)
ObjectGroup(size_t length)
v8::RetainedObjectInfo * info