![]() |
v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
|
#include <v8-local-handle.h>

Public Member Functions | |
| V8_INLINE | HandleScope (Isolate *isolate) |
| V8_INLINE | ~HandleScope () |
| V8_INLINE Isolate * | GetIsolate () const |
| HandleScope (const HandleScope &)=delete | |
| void | operator= (const HandleScope &)=delete |
Static Public Member Functions | |
| static int | NumberOfHandles (Isolate *isolate) |
| static internal::Address * | CreateHandleForCurrentIsolate (internal::Address value) |
Protected Member Functions | |
| V8_INLINE | HandleScope ()=default |
| V8_INLINE void | Initialize (Isolate *isolate) |
Static Protected Member Functions | |
| static V8_INLINE internal::Address * | CreateHandle (Isolate *i_isolate, internal::Address value) |
Friends | |
| template<typename T > | |
| class | LocalBase |
| class | Object |
| class | Context |
A stack-allocated class that governs a number of local handles. After a handle scope has been created, all local handles will be allocated within that handle scope until either the handle scope is deleted or another handle scope is created. If there is already a handle scope and a new one is created, all allocations will take place in the new handle scope until it is deleted. After that, new handles will again be allocated in the original handle scope.
After the handle scope of a local handle has been deleted the garbage collector will no longer track the object stored in the handle and may deallocate it. The behavior of accessing a handle for which the handle scope has been deleted is undefined.
Definition at line 119 of file v8-local-handle.h.
|
explicit |
Definition at line 188 of file v8-local-handle.h.
References HandleScope::Initialize().
Referenced by PersistentValueMapBase< K, V, Traits >::Clear().
| ~HandleScope | ( | ) |
Definition at line 203 of file v8-local-handle.h.
References Internals::GetHandleScopeData(), HandleScopeData::level, HandleScopeData::limit, and HandleScopeData::next.
|
delete |
|
protecteddefault |
|
staticprotected |
Definition at line 227 of file v8-local-handle.h.
References Internals::GetHandleScopeData(), HandleScopeData::limit, and HandleScopeData::next.
Referenced by LocalBase< T >::New().
|
static |
Definition at line 130 of file v8-local-handle.h.
|
protected |
Definition at line 190 of file v8-local-handle.h.
References Internals::GetHandleScopeData(), HandleScopeData::level, HandleScopeData::limit, and HandleScopeData::next.
Referenced by HandleScope::HandleScope().
|
static |
Counts the number of allocated handles.
|
delete |
|
friend |
Definition at line 185 of file v8-local-handle.h.
|
friend |
Definition at line 180 of file v8-local-handle.h.
Referenced by LocalBase< T >::FromRepr(), LocalBase< T >::FromSlot(), LocalBase< T >::New(), and LocalBase< T >::New().
|
friend |
Definition at line 184 of file v8-local-handle.h.