#include <v8.h>
構成 | |
class | Scope |
Public メソッド | |
Local< Object > | Global () |
void | DetachGlobal () |
void | SetSecurityToken (Handle< Value > token) |
void | UseDefaultSecurityToken () |
Handle< Value > | GetSecurityToken () |
void | Enter () |
void | Exit () |
bool | HasOutOfMemoryException () |
Static Public メソッド | |
static Persistent< Context > | New (ExtensionConfiguration *extensions=0, Handle< ObjectTemplate > global_template=Handle< ObjectTemplate >(), Handle< Value > global_object=Handle< Value >()) |
static Local< Context > | GetEntered () |
static Local< Context > | GetCurrent () |
static bool | InContext () |
フレンド | |
class | Value |
class | Script |
class | Object |
class | Function |
A sandboxed execution context with its own set of built-in objects and functions.
void v8::Context::DetachGlobal | ( | ) |
Detaches the global object from its context before the global object can be reused to create a new context.
void v8::Context::Enter | ( | ) |
Enter this context. After entering a context, all code compiled and run is compiled and run in this context. If another context is already entered, this old context is saved so it can be restored when the new context is exited.
参照先 v8::internal::Top::context(), v8::internal::GlobalHandles::Create(), v8::internal::HandleScopeImplementer::EnterContext(), v8::IsDeadCheck(), v8::Utils::OpenHandle(), v8::internal::HandleScopeImplementer::SaveContext(), v8::internal::Top::set_context(), と v8::thread_local.
void v8::Context::Exit | ( | ) |
Exit this context. Exiting the current context restores the context that was in place when entering the current context.
参照先 v8::ApiCheck(), v8::internal::GlobalHandles::Destroy(), v8::has_shut_down, v8::internal::HandleScopeImplementer::LeaveLastContext(), v8::internal::Handle< T >::location(), v8::internal::HandleScopeImplementer::RestoreContext(), v8::internal::Top::set_context(), と v8::thread_local.
v8::Local< v8::Context > v8::Context::GetCurrent | ( | ) | [static] |
Returns the context that is on the top of the stack.
参照先 v8::internal::Top::global_context(), v8::IsDeadCheck(), と v8::Utils::ToLocal().
v8::Local< v8::Context > v8::Context::GetEntered | ( | ) | [static] |
Returns the last entered context.
参照先 v8::IsDeadCheck(), v8::internal::HandleScopeImplementer::LastEnteredContext(), v8::thread_local, と v8::Utils::ToLocal().
Returns the security token of this context.
参照先 v8::IsDeadCheck(), v8::internal::Object, v8::Utils::OpenHandle(), と v8::Utils::ToLocal().
v8::Local< v8::Object > v8::Context::Global | ( | ) |
Returns the global object of the context.
参照先 v8::IsDeadCheck(), v8::internal::Object, と v8::Utils::ToLocal().
bool v8::Context::HasOutOfMemoryException | ( | ) |
Returns true if the context has experienced an out of memory situation.
bool v8::Context::InContext | ( | ) | [static] |
Returns true if V8 has a current context.
参照先 v8::internal::Top::context(), と NULL.
Persistent< Context > v8::Context::New | ( | v8::ExtensionConfiguration * | extensions = 0 , |
|
v8::Handle< ObjectTemplate > | global_template = Handle<ObjectTemplate>() , |
|||
v8::Handle< Value > | global_object = Handle<Value>() | |||
) | [static] |
Creates a new context.
参照先 v8::ApiCheck(), v8::internal::Bootstrapper::CreateEnvironment(), v8::EnsureConstructor(), v8::EnsureInitialized(), v8::internal::Handle< T >::is_null(), v8::Handle< T >::IsEmpty(), LOG_API, ON_BAILOUT, v8::Utils::OpenHandle(), と v8::Utils::ToLocal().
参照元 v8::Shell::Initialize(), と main().
Sets the security token for the context. To access an object in another context, the security tokens must match.
void v8::Context::UseDefaultSecurityToken | ( | ) |
Restores the security token to the default value.