V8 Project
|
A compiled JavaScript script, tied to a Context which was active when the script was compiled. More...
#include <v8.h>
Public Member Functions | |
Local< Value > | Run () |
Runs the script returning the resulting value. More... | |
Local< UnboundScript > | GetUnboundScript () |
Returns the corresponding context-unbound script. More... | |
V8_DEPRECATED ("Use GetUnboundScript()->GetId()", int GetId()) | |
Static Public Member Functions | |
static Local< Script > | Compile (Handle< String > source, ScriptOrigin *origin=NULL) |
A shorthand for ScriptCompiler::Compile(). More... | |
static Local< Script > | Compile (Handle< String > source, Handle< String > file_name) |
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
|
static |
Definition at line 1896 of file api.cc.
References v8::ScriptCompiler::Compile().
|
static |
A shorthand for ScriptCompiler::Compile().
Definition at line 1880 of file api.cc.
References v8::ScriptCompiler::Compile(), and v8::Utils::OpenHandle().
Referenced by v8::Shell::InstallUtilityScript(), and main().
Local< UnboundScript > v8::Script::GetUnboundScript | ( | ) |
Returns the corresponding context-unbound script.
Definition at line 1696 of file api.cc.
References v8::Utils::OpenHandle().
Runs the script returning the resulting value.
It will be run in the context in which it was created (ScriptCompiler::CompileBound or UnboundScript::BindToGlobalContext()).
Definition at line 1674 of file api.cc.
References v8::internal::Handle< T >::cast(), v8::internal::HandleScope::CloseAndEscape(), ENTER_V8, EXCEPTION_BAILOUT_CHECK_DO_CALLBACK, EXCEPTION_PREAMBLE, v8::internal::Isolate::global_proxy(), v8::internal::Handle< T >::is_null(), LOG_API, NULL, ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
|
inline |
Definition at line 1009 of file v8.h.