v8
10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
|
#include <v8-local-handle.h>
Public Member Functions | |
HandleScope (Isolate *isolate) | |
~HandleScope () | |
V8_INLINE Isolate * | GetIsolate () const |
HandleScope (const HandleScope &)=delete | |
void | operator= (const HandleScope &)=delete |
Static Public Member Functions | |
static int | NumberOfHandles (Isolate *isolate) |
Protected Member Functions | |
V8_INLINE | HandleScope ()=default |
void | Initialize (Isolate *isolate) |
Static Protected Member Functions | |
static internal::Address * | CreateHandle (internal::Isolate *isolate, internal::Address value) |
Friends | |
template<class F > | |
class | Local |
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 79 of file v8-local-handle.h.
|
explicit |
Referenced by PersistentValueMapBase< K, V, Traits >::Clear().
~HandleScope | ( | ) |
|
delete |
|
protecteddefault |
|
staticprotected |
Referenced by Context::GetEmbedderData(), and Object::GetInternalField().
Definition at line 90 of file v8-local-handle.h.
|
protected |
|
static |
Counts the number of allocated handles.
|
delete |
|
friend |
Definition at line 124 of file v8-local-handle.h.
|
friend |
Definition at line 119 of file v8-local-handle.h.
Referenced by Local< T >::As(), Local< T >::Cast(), FunctionCallbackInfo< T >::Data(), PropertyCallbackInfo< T >::Data(), String::Empty(), V8InspectorClient::ensureDefaultContextInGroup(), EscapableHandleScope::Escape(), EscapableHandleScope::EscapeMaybe(), MaybeLocal< T >::FromMaybe(), ReturnValue< T >::Get(), PersistentValueMapBase< K, V, Traits >::Get(), Eternal< T >::Get(), PersistentBase< T >::Get(), BasicTracedReference< T >::Get(), PersistentValueVector< V, Traits >::Get(), TracedReferenceBase::Get(), Context::GetDataFromSnapshotOnce(), Isolate::GetDataFromSnapshotOnce(), Context::GetEmbedderData(), Object::GetInternalField(), Extension::GetNativeFunctionTemplate(), FunctionCallbackInfo< T >::Holder(), PropertyCallbackInfo< T >::Holder(), PersistentValueMapBase< K, V, Traits >::PersistentValueReference::NewLocal(), FunctionCallbackInfo< T >::NewTarget(), FunctionCallbackInfo< T >::operator[](), PersistentValueMap< K, V, Traits >::SetUnique(), GlobalValueMap< K, V, Traits >::SetUnique(), FunctionCallbackInfo< T >::This(), PropertyCallbackInfo< T >::This(), and MaybeLocal< T >::ToLocalChecked().
|
friend |
Definition at line 123 of file v8-local-handle.h.