|
V8 Project
|
A compiled JavaScript script, tied to a Context which was active when the script was compiled. More...
#include <v8.h>
Collaboration diagram for v8::Script: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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| Local< UnboundScript > v8::Script::GetUnboundScript | ( | ) |
Returns the corresponding context-unbound script.
Definition at line 1696 of file api.cc.
References v8::Utils::OpenHandle().
Here is the call graph for this function: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().
Here is the call graph for this function:
|
inline |
Definition at line 1009 of file v8.h.