#include <v8.h>
Public メソッド | |
Local< Value > | Run () |
Static Public メソッド | |
static Local< Script > | Compile (Handle< String > source, ScriptOrigin *origin=NULL, ScriptData *pre_data=NULL) |
static Local< Script > | Compile (Handle< String > source, Handle< Value > file_name) |
A compiled JavaScript script.
Local< Script > v8::Script::Compile | ( | v8::Handle< String > | source, | |
v8::ScriptOrigin * | origin = NULL , |
|||
v8::ScriptData * | script_data = NULL | |||
) | [static] |
Compiles the specified script. The ScriptOrigin* and ScriptData* parameters are owned by the caller of Script::Compile. No references to these objects are kept after compilation finishes.
参照先 ASSERT, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, v8::internal::Top::global_context(), v8::internal::Handle< T >::is_null(), v8::Handle< T >::IsEmpty(), LOG_API, v8::internal::Factory::NewFunctionFromBoilerplate(), NULL, ON_BAILOUT, v8::Utils::OpenHandle(), v8::ScriptOrigin::ResourceColumnOffset(), v8::ScriptOrigin::ResourceLineOffset(), v8::ScriptOrigin::ResourceName(), と v8::internal::ScriptDataImpl::SanityCheck().
参照元 Compile(), v8::Shell::ExecuteString(), と v8::Shell::Initialize().
Local< Script > v8::Script::Compile | ( | v8::Handle< String > | source, | |
v8::Handle< Value > | file_name | |||
) | [static] |
Runs the script returning the resulting value.
参照先 v8::internal::Execution::Call(), v8::internal::Top::context(), EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, LOG_API, NULL, v8::internal::Object, ON_BAILOUT, v8::Utils::OpenHandle(), と v8::Utils::ToLocal().