V8 Project
|
A HandleScope which first allocates a handle in the current scope which will be later filled with the escape value. More...
#include <v8.h>
Public Member Functions | |
EscapableHandleScope (Isolate *isolate) | |
~EscapableHandleScope () | |
template<class T > | |
Local< T > | Escape (Local< T > value) |
Pushes the value into the previous scope and returns a handle to it. More... | |
![]() | |
HandleScope (Isolate *isolate) | |
~HandleScope () | |
Isolate * | GetIsolate () const |
Private Member Functions | |
internal::Object ** | Escape (internal::Object **escape_value) |
EscapableHandleScope (const EscapableHandleScope &) | |
void | operator= (const EscapableHandleScope &) |
void * | operator new (size_t size) |
void | operator delete (void *, size_t) |
Private Attributes | |
internal::Object ** | escape_slot_ |
Additional Inherited Members | |
![]() | |
static int | NumberOfHandles (Isolate *isolate) |
Counts the number of allocated handles. More... | |
![]() | |
HandleScope () | |
void | Initialize (Isolate *isolate) |
![]() | |
static internal::Object ** | CreateHandle (internal::Isolate *isolate, internal::Object *value) |
A HandleScope which first allocates a handle in the current scope which will be later filled with the escape value.
v8::EscapableHandleScope::EscapableHandleScope | ( | Isolate * | isolate | ) |
Definition at line 591 of file api.cc.
References v8::HandleScope::CreateHandle(), escape_slot_, v8::internal::Isolate::heap(), and v8::HandleScope::Initialize().
|
inline |
|
private |
|
private |
Definition at line 598 of file api.cc.
References v8::Utils::ApiCheck(), escape_slot_, v8::HandleScope::GetIsolate(), and NULL.
Pushes the value into the previous scope and returns a handle to it.
Cannot be called twice.
Definition at line 865 of file v8.h.
References T.
Referenced by v8::Shell::CreateEvaluationContext(), v8::Shell::DebugCommandToJSONRequest(), v8::Shell::DebugMessageDetails(), v8::internal::Handle< T >::EscapeFrom(), v8::Message::Get(), v8::Shell::GetCompletions(), v8::StackTrace::GetFrame(), v8::internal::MessageImpl::GetJSON(), v8::Debug::GetMirror(), v8::Message::GetSourceLine(), v8::Message::GetStackTrace(), v8::getStringProperty(), and v8::Function::NewInstance().
|
private |
|
private |
|
private |
|
private |
Definition at line 881 of file v8.h.
Referenced by EscapableHandleScope(), and Escape().