V8 Project
v8::internal::AlwaysAllocateScope Class Reference

#include <heap.h>

+ Collaboration diagram for v8::internal::AlwaysAllocateScope:

Public Member Functions

 AlwaysAllocateScope (Isolate *isolate)
 
 ~AlwaysAllocateScope ()
 

Private Attributes

Heapheap_
 
DisallowAllocationFailure daf_
 

Detailed Description

Definition at line 2077 of file heap.h.

Constructor & Destructor Documentation

◆ AlwaysAllocateScope()

v8::internal::AlwaysAllocateScope::AlwaysAllocateScope ( Isolate isolate)
inlineexplicit

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

718  : heap_(isolate->heap()), daf_(isolate) {
719  // We shouldn't hit any nested scopes, because that requires
720  // non-handle code to call handle code. The code still works but
721  // performance will degrade, so we want to catch this situation
722  // in debug mode.
725 }
DisallowAllocationFailure daf_
Definition: heap.h:2085
int always_allocate_scope_depth_
Definition: heap.h:1443
#define DCHECK(condition)
Definition: logging.h:205

References v8::internal::Heap::always_allocate_scope_depth_, DCHECK, and heap_.

◆ ~AlwaysAllocateScope()

v8::internal::AlwaysAllocateScope::~AlwaysAllocateScope ( )
inline

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

References v8::internal::Heap::always_allocate_scope_depth_, DCHECK, and heap_.

Member Data Documentation

◆ daf_

DisallowAllocationFailure v8::internal::AlwaysAllocateScope::daf_
private

Definition at line 2085 of file heap.h.

◆ heap_

Heap* v8::internal::AlwaysAllocateScope::heap_
private

Definition at line 2084 of file heap.h.

Referenced by AlwaysAllocateScope(), and ~AlwaysAllocateScope().


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