v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Static Public Member Functions | |
static Local< Function > | New (Isolate *isolate, FunctionCallback callback, Local< Value > data=Local< Value >(), int length=0) |
static V8_INLINE Function * | Cast (Value *obj) |
Static Public Member Functions inherited from Object | |
static V8_INLINE int | InternalFieldCount (const PersistentBase< Object > &object) |
static V8_INLINE void * | GetAlignedPointerFromInternalField (const PersistentBase< Object > &object, int index) |
static Local< Object > | New (Isolate *isolate) |
static V8_INLINE Object * | Cast (Value *obj) |
Static Public Member Functions inherited from Value | |
template<class T > | |
static V8_INLINE Value * | Cast (T *value) |
Static Public Attributes | |
static const int | kLineOffsetNotFound = -1 |
Definition at line 3996 of file api.cc.
References Execution::Call(), ENTER_V8, EXCEPTION_BAILOUT_CHECK_DO_CALLBACK, EXCEPTION_PREAMBLE, LOG_API, NULL, ON_BAILOUT, Utils::OpenHandle(), STATIC_ASSERT, and Utils::ToLocal().
Referenced by JsHttpRequestProcessor::Process(), RunCppCycle(), and TEST().
Returns the original function if this function is bound, else returns v8::Undefined.
Definition at line 4123 of file api.cc.
References FixedArray::cast(), JSFunction::kBoundFunctionIndex, Utils::OpenHandle(), Utils::ToLocal(), and v8::Undefined().
Referenced by THREADED_TEST().
User-defined name assigned to the "displayName" property of this function. Used to facilitate debugging and profiling of JavaScript code.
Definition at line 4045 of file api.cc.
References String::cast(), ENTER_V8, Isolate::factory(), Factory::InternalizeOneByteString(), String::length(), ON_BAILOUT, Utils::OpenHandle(), STATIC_ASCII_VECTOR, and Utils::ToLocal().
Referenced by THREADED_TEST().
Name inferred from variable or property assignment of this function. Used to facilitate debugging and profiling of JavaScript code written in an OO style, where many functions are anonymous but are assigned to object properties.
Definition at line 4038 of file api.cc.
References Utils::OpenHandle(), and Utils::ToLocal().
Referenced by THREADED_TEST().
Definition at line 4031 of file api.cc.
References Utils::OpenHandle(), and Utils::ToLocal().
Referenced by THREADED_TEST().
int GetScriptColumnNumber | ( | ) | const |
Returns zero based column number of function body and kLineOffsetNotFound if no information available.
Definition at line 4097 of file api.cc.
References Script::cast(), v8::internal::GetScriptColumnNumber(), Function::kLineOffsetNotFound, and Utils::OpenHandle().
Referenced by THREADED_TEST().
int GetScriptLineNumber | ( | ) | const |
Returns zero based line number of function body and kLineOffsetNotFound if no information available.
Definition at line 4087 of file api.cc.
References Script::cast(), v8::internal::GetScriptLineNumber(), Function::kLineOffsetNotFound, and Utils::OpenHandle().
Referenced by TEST(), and THREADED_TEST().
ScriptOrigin GetScriptOrigin | ( | ) | const |
Definition at line 4068 of file api.cc.
References Script::cast(), v8::internal::GetScriptNameOrSourceURL(), Integer::New(), Utils::OpenHandle(), and Utils::ToLocal().
Referenced by THREADED_TEST().
bool IsBuiltin | ( | ) | const |
Tells whether this function is builtin.
Definition at line 4107 of file api.cc.
References Utils::OpenHandle().
Referenced by THREADED_TEST().
|
static |
Create a function in the current execution context for a given FunctionCallback.
Definition at line 3957 of file api.cc.
References ENTER_V8, and LOG_API.
Referenced by THREADED_TEST().
Local< v8::Object > NewInstance | ( | ) | const |
Definition at line 3970 of file api.cc.
References NULL.
Referenced by TEST(), and THREADED_PROFILED_TEST().
Local< v8::Object > NewInstance | ( | int | argc, |
Handle< Value > | argv[] | ||
) | const |
Definition at line 3975 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), EXCEPTION_BAILOUT_CHECK_DO_CALLBACK, EXCEPTION_PREAMBLE, LOG_API, Execution::New(), ON_BAILOUT, Utils::OpenHandle(), STATIC_ASSERT, and Utils::ToLocal().
int ScriptId | ( | ) | const |
Returns scriptId.
Definition at line 4113 of file api.cc.
References Script::cast(), UnboundScript::kNoScriptId, and Utils::OpenHandle().
Referenced by THREADED_TEST().
Definition at line 4022 of file api.cc.
References ENTER_V8, Utils::OpenHandle(), and v8::internal::USE().
Referenced by TEST().
|
static |
Definition at line 2669 of file v8.h.
Referenced by Function::GetScriptColumnNumber(), and Function::GetScriptLineNumber().