|
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>
Inheritance diagram for v8::EscapableHandleScope:
Collaboration diagram for v8::EscapableHandleScope: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... | |
Public Member Functions inherited from v8::HandleScope | |
| 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 Public Member Functions inherited from v8::HandleScope | |
| static int | NumberOfHandles (Isolate *isolate) |
| Counts the number of allocated handles. More... | |
Protected Member Functions inherited from v8::HandleScope | |
| HandleScope () | |
| void | Initialize (Isolate *isolate) |
Static Protected Member Functions inherited from v8::HandleScope | |
| 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().
Here is the call graph for this function:
|
inline |
|
private |
|
private |
Definition at line 598 of file api.cc.
References v8::Utils::ApiCheck(), escape_slot_, v8::HandleScope::GetIsolate(), and NULL.
Here is the call graph for this function: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().
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
Definition at line 881 of file v8.h.
Referenced by EscapableHandleScope(), and Escape().