v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
Local< Value > | Run () |
Local< UnboundScript > | GetUnboundScript () |
int | GetId () |
V8_DEPRECATED ("Use GetUnboundScript()->GetId()", Handle< Value > GetScriptName()) | |
V8_DEPRECATED ("Use GetUnboundScript()->GetLineNumber()", int GetLineNumber(int code_pos)) | |
Static Public Member Functions | |
static Local< Script > | Compile (Handle< String > source, ScriptOrigin *origin=NULL, ScriptData *script_data=NULL) |
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 |
A shorthand for ScriptCompiler::Compile(). The ScriptData parameter will be deprecated; use ScriptCompiler::Compile if you want to pass it.
Definition at line 1832 of file api.cc.
References ScriptCompiler::Compile(), ScriptData::Data(), ScriptData::Length(), NULL, and Utils::OpenHandle().
Referenced by DEPENDENT_TEST(), DoLoop(), DoLoopCancelTerminate(), DoLoopNoCall(), ExecuteString(), Loop(), LoopGetProperty(), main(), ReenterAfterTermination(), ReleaseStackTraceDataTest(), ThreadA::Run(), RunMain(), TEST(), and THREADED_TEST().
|
static |
Definition at line 1855 of file api.cc.
References ScriptCompiler::Compile().
|
inline |
Definition at line 1067 of file v8.h.
Referenced by TEST(), and THREADED_TEST().
Local< UnboundScript > GetUnboundScript | ( | ) |
Returns the corresponding context-unbound script.
Definition at line 1716 of file api.cc.
References JSFunction::cast(), and 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 1686 of file api.cc.
References Execution::Call(), Handle< T >::cast(), JSFunction::cast(), Isolate::context(), ENTER_V8, EXCEPTION_BAILOUT_CHECK_DO_CALLBACK, EXCEPTION_PREAMBLE, Context::global_proxy(), LOG_API, NULL, ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by DeclarationContext::Check(), SimpleContext::Check(), DEPENDENT_TEST(), ExecuteString(), main(), ThreadA::Run(), RunMain(), TEST(), and THREADED_TEST().
|
inline |
|
inline |