V8 Project
|
A compiled JavaScript script, not yet tied to a Context. More...
#include <v8.h>
Public Member Functions | |
Local< Script > | BindToCurrentContext () |
Binds the script to the currently entered context. More... | |
int | GetId () |
Handle< Value > | GetScriptName () |
Handle< Value > | GetSourceURL () |
Data read from magic sourceURL comments. More... | |
Handle< Value > | GetSourceMappingURL () |
Data read from magic sourceMappingURL comments. More... | |
int | GetLineNumber (int code_pos) |
Returns zero based line number of the code_pos location in the script. More... | |
Static Public Attributes | |
static const int | kNoScriptId = 0 |
Binds the script to the currently entered context.
Definition at line 1583 of file api.cc.
References v8::internal::Handle< T >::cast(), and v8::Utils::OpenHandle().
int v8::UnboundScript::GetId | ( | ) |
Definition at line 1595 of file api.cc.
References v8::internal::Handle< T >::cast(), LOG_API, ON_BAILOUT, and v8::Utils::OpenHandle().
Returns zero based line number of the code_pos location in the script.
-1 will be returned if no information available.
Definition at line 1611 of file api.cc.
References v8::internal::Handle< T >::cast(), v8::internal::Script::GetLineNumber(), LOG_API, ON_BAILOUT, and v8::Utils::OpenHandle().
Definition at line 1626 of file api.cc.
References v8::internal::Handle< T >::cast(), LOG_API, name, ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
Data read from magic sourceMappingURL comments.
Definition at line 1658 of file api.cc.
References v8::internal::Handle< T >::cast(), LOG_API, ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
Data read from magic sourceURL comments.
Definition at line 1642 of file api.cc.
References v8::internal::Handle< T >::cast(), LOG_API, ON_BAILOUT, v8::Utils::OpenHandle(), and v8::Utils::ToLocal().
|
static |
Definition at line 977 of file v8.h.
Referenced by v8::internal::Heap::CreateInitialObjects(), and v8::Function::ScriptId().