v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::internal::FatalOutOfMemoryHandler Class Referencefinal

#include <platform.h>

Collaboration diagram for cppgc::internal::FatalOutOfMemoryHandler:

Public Types

using Callback = void(const std::string&, const SourceLocation&, HeapBase*)
 

Public Member Functions

 FatalOutOfMemoryHandler ()=default
 
 FatalOutOfMemoryHandler (HeapBase *heap)
 
void operator() (const std::string &reason=std::string(), const SourceLocation &=SourceLocation::Current()) const
 
void SetCustomHandler (Callback *)
 
 FatalOutOfMemoryHandler (const FatalOutOfMemoryHandler &)=delete
 
FatalOutOfMemoryHandleroperator= (const FatalOutOfMemoryHandler &)=delete
 

Private Attributes

HeapBaseheap_ = nullptr
 
Callbackcustom_handler_ = nullptr
 

Detailed Description

Definition at line 18 of file platform.h.

Member Typedef Documentation

◆ Callback

Definition at line 20 of file platform.h.

Constructor & Destructor Documentation

◆ FatalOutOfMemoryHandler() [1/3]

cppgc::internal::FatalOutOfMemoryHandler::FatalOutOfMemoryHandler ( )
default

◆ FatalOutOfMemoryHandler() [2/3]

cppgc::internal::FatalOutOfMemoryHandler::FatalOutOfMemoryHandler ( HeapBase * heap)
inlineexplicit

Definition at line 23 of file platform.h.

◆ FatalOutOfMemoryHandler() [3/3]

cppgc::internal::FatalOutOfMemoryHandler::FatalOutOfMemoryHandler ( const FatalOutOfMemoryHandler & )
delete

Member Function Documentation

◆ operator()()

void cppgc::internal::FatalOutOfMemoryHandler::operator() ( const std::string & reason = std::string(),
const SourceLocation & loc = SourceLocation::Current() ) const

Definition at line 55 of file platform.cc.

Here is the call graph for this function:

◆ operator=()

FatalOutOfMemoryHandler & cppgc::internal::FatalOutOfMemoryHandler::operator= ( const FatalOutOfMemoryHandler & )
delete

◆ SetCustomHandler()

void cppgc::internal::FatalOutOfMemoryHandler::SetCustomHandler ( Callback * callback)

Definition at line 69 of file platform.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ custom_handler_

Callback* cppgc::internal::FatalOutOfMemoryHandler::custom_handler_ = nullptr
private

Definition at line 37 of file platform.h.

◆ heap_

HeapBase* cppgc::internal::FatalOutOfMemoryHandler::heap_ = nullptr
private

Definition at line 36 of file platform.h.


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