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

#include <local-handles.h>

Collaboration diagram for v8::internal::LocalHandleScope:

Public Member Functions

 LocalHandleScope (LocalIsolate *local_isolate)
 
 LocalHandleScope (LocalHeap *local_heap)
 
 ~LocalHandleScope ()
 
 LocalHandleScope (const LocalHandleScope &)=delete
 
LocalHandleScopeoperator= (const LocalHandleScope &)=delete
 
template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<T>>)
HandleType< TCloseAndEscape (HandleType< T > handle_value)
 

Static Public Member Functions

static V8_INLINE AddressGetHandle (LocalHeap *local_heap, Address value)
 

Private Member Functions

void * operator new (size_t size)=delete
 
void operator delete (void *size_t)=delete
 
V8_EXPORT_PRIVATE void OpenMainThreadScope (LocalHeap *local_heap)
 

Static Private Member Functions

static void CloseScope (LocalHeap *local_heap, Address *prev_next, Address *prev_limit)
 
static V8_EXPORT_PRIVATE void CloseMainThreadScope (LocalHeap *local_heap, Address *prev_next, Address *prev_limit)
 
static V8_EXPORT_PRIVATE AddressGetMainThreadHandle (LocalHeap *local_heap, Address value)
 

Private Attributes

LocalHeaplocal_heap_
 
Addressprev_limit_
 
Addressprev_next_
 

Detailed Description

Definition at line 44 of file local-handles.h.

Constructor & Destructor Documentation

◆ LocalHandleScope() [1/3]

v8::internal::LocalHandleScope::LocalHandleScope ( LocalIsolate * local_isolate)
inlineexplicit

Definition at line 36 of file local-handles-inl.h.

◆ LocalHandleScope() [2/3]

v8::internal::LocalHandleScope::LocalHandleScope ( LocalHeap * local_heap)
inlineexplicit

Definition at line 39 of file local-handles-inl.h.

Here is the call graph for this function:

◆ ~LocalHandleScope()

v8::internal::LocalHandleScope::~LocalHandleScope ( )
inline

Definition at line 53 of file local-handles-inl.h.

Here is the call graph for this function:

◆ LocalHandleScope() [3/3]

v8::internal::LocalHandleScope::LocalHandleScope ( const LocalHandleScope & )
delete

Member Function Documentation

◆ CloseAndEscape()

template<typename T , template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<T>, DirectHandle<T>>)
HandleType< T > v8::internal::LocalHandleScope::CloseAndEscape ( HandleType< T > handle_value)

Definition at line 66 of file local-handles-inl.h.

Here is the caller graph for this function:

◆ CloseMainThreadScope()

void v8::internal::LocalHandleScope::CloseMainThreadScope ( LocalHeap * local_heap,
Address * prev_next,
Address * prev_limit )
staticprivate

Definition at line 34 of file local-handles.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CloseScope()

void v8::internal::LocalHandleScope::CloseScope ( LocalHeap * local_heap,
Address * prev_next,
Address * prev_limit )
inlinestaticprivate

Definition at line 91 of file local-handles-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHandle()

V8_INLINE Address * v8::internal::LocalHandleScope::GetHandle ( LocalHeap * local_heap,
Address value )
static

Definition at line 19 of file local-handles-inl.h.

Here is the call graph for this function:

◆ GetMainThreadHandle()

Address * v8::internal::LocalHandleScope::GetMainThreadHandle ( LocalHeap * local_heap,
Address value )
staticprivate

Definition at line 16 of file local-handles.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenMainThreadScope()

void v8::internal::LocalHandleScope::OpenMainThreadScope ( LocalHeap * local_heap)
private

Definition at line 22 of file local-handles.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator delete()

void v8::internal::LocalHandleScope::operator delete ( void * size_t)
privatedelete

◆ operator new()

void * v8::internal::LocalHandleScope::operator new ( size_t size)
privatedelete

◆ operator=()

LocalHandleScope & v8::internal::LocalHandleScope::operator= ( const LocalHandleScope & )
delete

Member Data Documentation

◆ local_heap_

LocalHeap* v8::internal::LocalHandleScope::local_heap_
private

Definition at line 80 of file local-handles.h.

◆ prev_limit_

Address* v8::internal::LocalHandleScope::prev_limit_
private

Definition at line 81 of file local-handles.h.

◆ prev_next_

Address* v8::internal::LocalHandleScope::prev_next_
private

Definition at line 82 of file local-handles.h.


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