|
V8 Project
|
Collaboration diagram for v8::internal::GlobalHandles::Node:Classes | |
| class | IsIndependent |
| class | IsInNewSpaceList |
| class | IsPartiallyDependent |
| class | NodeState |
Public Types | |
| enum | State { FREE = 0 , NORMAL , WEAK , PENDING , NEAR_DEATH } |
Static Public Member Functions | |
| static Node * | FromLocation (Object **location) |
Private Member Functions | |
| NodeBlock * | FindBlock () |
| void | IncreaseBlockUses () |
| void | DecreaseBlockUses () |
| DISALLOW_COPY_AND_ASSIGN (Node) | |
Private Attributes | |
| Object * | object_ |
| uint16_t | class_id_ |
| uint8_t | index_ |
| uint8_t | flags_ |
| WeakCallback | weak_callback_ |
| union { | |
| void * parameter | |
| Node * next_free | |
| } | parameter_or_next_free_ |
Definition at line 27 of file global-handles.cc.
|
inline |
Definition at line 45 of file global-handles.cc.
References class_id_, DCHECK, flags_, v8::internal::BitFieldBase< T, shift, size, U >::kMask, v8::internal::Internals::kNodeClassIdOffset, v8::internal::Internals::kNodeFlagsOffset, v8::internal::Internals::kNodeIsIndependentShift, v8::internal::Internals::kNodeIsPartiallyDependentShift, v8::internal::Internals::kNodeStateIsNearDeathValue, v8::internal::Internals::kNodeStateIsPendingValue, v8::internal::Internals::kNodeStateIsWeakValue, v8::internal::Internals::kNodeStateMask, v8::internal::BitFieldBase< T, shift, size, U >::kShift, NEAR_DEATH, OFFSET_OF, PENDING, v8::internal::STATIC_ASSERT(), and WEAK.
Here is the call graph for this function:
|
inline |
Definition at line 83 of file global-handles.cc.
References class_id_, DCHECK, FREE, IncreaseBlockUses(), v8::HeapProfiler::kPersistentHandleNoClassId, NORMAL, NULL, object(), object_, parameter_or_next_free_, set_independent(), set_partially_dependent(), set_state(), state(), and weak_callback_.
Referenced by v8::internal::GlobalHandles::Create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 181 of file global-handles.cc.
References set_partially_dependent().
Referenced by v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 216 of file global-handles.cc.
References DCHECK, FREE, NORMAL, NULL, parameter, set_parameter(), set_state(), and state().
Referenced by v8::internal::GlobalHandles::ClearWeakness().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 388 of file global-handles.cc.
References v8::internal::Isolate::counters(), v8::internal::GlobalHandles::NodeBlock::DecreaseUses(), v8::internal::GlobalHandles::first_free_, v8::internal::GlobalHandles::NodeBlock::global_handles(), v8::internal::GlobalHandles::isolate(), and v8::internal::GlobalHandles::number_of_global_handles_.
Referenced by Release().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
inlineprivate |
Definition at line 370 of file global-handles.cc.
References DCHECK.
Referenced by GetGlobalHandles().
Here is the caller graph for this function:Definition at line 40 of file global-handles.cc.
References DCHECK, location(), object_, and OFFSET_OF.
Referenced by v8::internal::GlobalHandles::AddObjectGroup(), v8::internal::GlobalHandles::ClearWeakness(), v8::internal::GlobalHandles::CopyGlobal(), v8::internal::GlobalHandles::Destroy(), v8::internal::GlobalHandles::IsIndependent(), v8::internal::GlobalHandles::IsNearDeath(), v8::internal::GlobalHandles::IsWeak(), v8::internal::GlobalHandles::MakeWeak(), v8::internal::GlobalHandles::MarkIndependent(), v8::internal::GlobalHandles::MarkPartiallyDependent(), v8::internal::GlobalHandles::SetReference(), and v8::internal::GlobalHandles::SetReferenceFromGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 365 of file global-handles.cc.
References FindBlock(), and v8::internal::GlobalHandles::NodeBlock::global_handles().
Referenced by v8::internal::GlobalHandles::CopyGlobal(), and MarkPartiallyDependent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 110 of file global-handles.cc.
References location().
Referenced by v8::internal::GlobalHandles::Create(), and PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 113 of file global-handles.cc.
References class_id_, and v8::HeapProfiler::kPersistentHandleNoClassId.
Referenced by v8::internal::GlobalHandles::IterateAllRootsInNewSpaceWithClassIds().
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 379 of file global-handles.cc.
References v8::internal::Isolate::counters(), v8::internal::GlobalHandles::NodeBlock::global_handles(), v8::internal::GlobalHandles::NodeBlock::IncreaseUses(), v8::internal::GlobalHandles::isolate(), and v8::internal::GlobalHandles::number_of_global_handles_.
Referenced by Acquire().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 74 of file global-handles.cc.
References DCHECK, FREE, index_, parameter_or_next_free_, set_in_new_space_list(), and set_state().
Referenced by v8::internal::GlobalHandles::NodeBlock::PutNodesOnFreeList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 142 of file global-handles.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and flags_.
Referenced by v8::internal::GlobalHandles::Create(), v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::internal::GlobalHandles::IterateNewSpaceWeakIndependentRoots(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 128 of file global-handles.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and flags_.
Referenced by v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::internal::GlobalHandles::IsIndependent(), v8::internal::GlobalHandles::IterateNewSpaceStrongAndDependentRoots(), v8::internal::GlobalHandles::IterateNewSpaceWeakIndependentRoots(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 135 of file global-handles.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and flags_.
Referenced by v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::internal::GlobalHandles::IterateNewSpaceStrongAndDependentRoots(), v8::internal::GlobalHandles::IterateNewSpaceWeakIndependentRoots(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 149 of file global-handles.cc.
References NEAR_DEATH, PENDING, and state().
Referenced by v8::internal::GlobalHandles::IsNearDeath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 156 of file global-handles.cc.
Referenced by v8::internal::GlobalHandles::IterateAllRootsInNewSpaceWithClassIds(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 158 of file global-handles.cc.
References NORMAL, and state().
Referenced by v8::internal::GlobalHandles::IterateNewSpaceStrongAndDependentRoots().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 154 of file global-handles.cc.
Referenced by v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), and v8::internal::GlobalHandles::IsWeak().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 160 of file global-handles.cc.
References NEAR_DEATH, PENDING, state(), and WEAK.
Referenced by v8::internal::GlobalHandles::IterateNewSpaceStrongAndDependentRoots(), and v8::internal::GlobalHandles::IterateNewSpaceWeakIndependentRoots().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 109 of file global-handles.cc.
References object_.
Referenced by FromLocation(), handle(), v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::internal::GlobalHandles::IterateAllRootsInNewSpaceWithClassIds(), v8::internal::GlobalHandles::IterateNewSpaceStrongAndDependentRoots(), v8::internal::GlobalHandles::IterateNewSpaceWeakIndependentRoots(), and PostGarbageCollectionProcessing().
Here is the caller graph for this function:
|
inline |
Definition at line 207 of file global-handles.cc.
References CHECK, DCHECK, FREE, NULL, object_, parameter, set_parameter(), set_state(), state(), WEAK, and weak_callback_.
Referenced by v8::internal::GlobalHandles::MakeWeak().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 170 of file global-handles.cc.
References DCHECK, FREE, set_independent(), and state().
Referenced by v8::internal::GlobalHandles::MarkIndependent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 175 of file global-handles.cc.
References DCHECK, FREE, GetGlobalHandles(), v8::internal::GlobalHandles::isolate(), object_, set_partially_dependent(), and state().
Referenced by v8::internal::GlobalHandles::MarkPartiallyDependent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 164 of file global-handles.cc.
References DCHECK, PENDING, set_state(), state(), and WEAK.
Referenced by v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 198 of file global-handles.cc.
References DCHECK, FREE, parameter_or_next_free_, and state().
Here is the call graph for this function:
|
inline |
Definition at line 108 of file global-handles.cc.
References object_.
Referenced by Acquire(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the caller graph for this function:
|
inline |
Definition at line 192 of file global-handles.cc.
References DCHECK, FREE, parameter_or_next_free_, and state().
Here is the call graph for this function:Definition at line 224 of file global-handles.cc.
References CHECK, DCHECK, handle(), v8::internal::GlobalHandles::isolate(), location(), NEAR_DEATH, NULL, object_, parameter, PENDING, Release(), set_parameter(), set_state(), state(), v8::Utils::ToLocal(), and weak_callback_.
Referenced by v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 95 of file global-handles.cc.
References class_id_, DCHECK, DecreaseBlockUses(), FREE, v8::internal::kGlobalHandleZapValue, v8::HeapProfiler::kPersistentHandleNoClassId, NULL, object_, set_independent(), set_partially_dependent(), set_state(), state(), and weak_callback_.
Referenced by v8::internal::GlobalHandles::Destroy(), and PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 145 of file global-handles.cc.
References flags_, and v8::internal::BitFieldBase< T, shift, size, U >::update().
Referenced by v8::internal::GlobalHandles::Create(), Initialize(), and v8::internal::GlobalHandles::PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 131 of file global-handles.cc.
References flags_, and v8::internal::BitFieldBase< T, shift, size, U >::update().
Referenced by Acquire(), MarkIndependent(), and Release().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 202 of file global-handles.cc.
References DCHECK, FREE, parameter_or_next_free_, and state().
Here is the call graph for this function:
|
inline |
Definition at line 188 of file global-handles.cc.
References DCHECK, FREE, parameter, parameter_or_next_free_, and state().
Referenced by ClearWeakness(), MakeWeak(), and PostGarbageCollectionProcessing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 138 of file global-handles.cc.
References flags_, and v8::internal::BitFieldBase< T, shift, size, U >::update().
Referenced by Acquire(), clear_partially_dependent(), MarkPartiallyDependent(), and Release().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 124 of file global-handles.cc.
References flags_, state(), and v8::internal::BitFieldBase< T, shift, size, U >::update().
Referenced by Acquire(), ClearWeakness(), Initialize(), MakeWeak(), MarkPending(), PostGarbageCollectionProcessing(), and Release().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 121 of file global-handles.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and flags_.
Referenced by Acquire(), ClearWeakness(), IsNearDeath(), IsRetainer(), IsStrongRetainer(), IsWeak(), IsWeakRetainer(), MakeWeak(), MarkIndependent(), MarkPartiallyDependent(), MarkPending(), next_free(), parameter(), PostGarbageCollectionProcessing(), Release(), set_next_free(), set_parameter(), and set_state().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 117 of file global-handles.cc.
References class_id_.
Referenced by v8::internal::GlobalHandles::IterateAllRootsInNewSpaceWithClassIds().
Here is the caller graph for this function:
|
private |
Definition at line 273 of file global-handles.cc.
Referenced by Acquire(), has_wrapper_class_id(), Node(), Release(), and wrapper_class_id().
|
private |
Definition at line 285 of file global-handles.cc.
Referenced by is_in_new_space_list(), is_independent(), is_partially_dependent(), Node(), set_in_new_space_list(), set_independent(), set_partially_dependent(), set_state(), and state().
|
private |
Definition at line 276 of file global-handles.cc.
Referenced by Initialize().
| Node* v8::internal::GlobalHandles::Node::next_free |
Definition at line 294 of file global-handles.cc.
Referenced by v8::internal::GlobalHandles::Create().
|
private |
Definition at line 267 of file global-handles.cc.
Referenced by Acquire(), FromLocation(), location(), MakeWeak(), MarkPartiallyDependent(), object(), PostGarbageCollectionProcessing(), and Release().
| void* v8::internal::GlobalHandles::Node::parameter |
Definition at line 293 of file global-handles.cc.
Referenced by ClearWeakness(), MakeWeak(), PostGarbageCollectionProcessing(), and set_parameter().
| union { ... } v8::internal::GlobalHandles::Node::parameter_or_next_free_ |
Referenced by Acquire(), Initialize(), next_free(), parameter(), set_next_free(), and set_parameter().
|
private |
Definition at line 288 of file global-handles.cc.
Referenced by Acquire(), MakeWeak(), PostGarbageCollectionProcessing(), and Release().