V8 Project
v8::internal::GCCallbacksScope Class Reference

#include <heap.h>

+ Collaboration diagram for v8::internal::GCCallbacksScope:

Public Member Functions

 GCCallbacksScope (Heap *heap)
 
 ~GCCallbacksScope ()
 
bool CheckReenter ()
 

Private Attributes

Heapheap_
 

Detailed Description

Definition at line 2098 of file heap.h.

Constructor & Destructor Documentation

◆ GCCallbacksScope()

v8::internal::GCCallbacksScope::GCCallbacksScope ( Heap heap)
inlineexplicit

Definition at line 748 of file heap-inl.h.

748  : heap_(heap) {
750 }
int gc_callbacks_depth_
Definition: heap.h:2021

References v8::internal::Heap::gc_callbacks_depth_, and heap_.

◆ ~GCCallbacksScope()

v8::internal::GCCallbacksScope::~GCCallbacksScope ( )
inline

Definition at line 753 of file heap-inl.h.

References v8::internal::Heap::gc_callbacks_depth_, and heap_.

Member Function Documentation

◆ CheckReenter()

bool v8::internal::GCCallbacksScope::CheckReenter ( )
inline

Definition at line 756 of file heap-inl.h.

756  {
757  return heap_->gc_callbacks_depth_ == 1;
758 }

References v8::internal::Heap::gc_callbacks_depth_, and heap_.

Referenced by v8::internal::Heap::PerformGarbageCollection().

+ Here is the caller graph for this function:

Member Data Documentation

◆ heap_

Heap* v8::internal::GCCallbacksScope::heap_
private

Definition at line 2106 of file heap.h.

Referenced by CheckReenter(), GCCallbacksScope(), and ~GCCallbacksScope().


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