![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-function-callback.h>
Public Member Functions | |
V8_INLINE int | Length () const |
V8_INLINE Local< Value > | operator[] (int i) const |
V8_INLINE Local< Object > | This () const |
V8_INLINE Local< Value > | NewTarget () const |
V8_INLINE bool | IsConstructCall () const |
V8_INLINE Local< Value > | Data () const |
V8_INLINE Isolate * | GetIsolate () const |
V8_INLINE ReturnValue< T > | GetReturnValue () const |
Private Member Functions | |
V8_INLINE | FunctionCallbackInfo (internal::Address *implicit_args, internal::Address *values, int length) |
Private Attributes | |
internal::Address * | implicit_args_ |
internal::Address * | values_ |
internal::Address | length_ |
Static Private Attributes | |
static constexpr int | kUnusedIndex = 0 |
static constexpr int | kIsolateIndex = 1 |
static constexpr int | kContextIndex = 2 |
static constexpr int | kReturnValueIndex = 3 |
static constexpr int | kTargetIndex = 4 |
static constexpr int | kNewTargetIndex = 5 |
static constexpr int | kArgsLength = 6 |
static constexpr int | kArgsLengthWithReceiver = kArgsLength + 1 |
static constexpr int | kSize = 3 * internal::kApiSystemPointerSize |
static constexpr int | kImplicitArgsOffset = 0 |
static constexpr int | kValuesOffset |
static constexpr int | kLengthOffset |
static constexpr int | kThisValuesIndex = -1 |
Friends | |
class | internal::FunctionCallbackArguments |
class | internal::CustomArguments< FunctionCallbackInfo > |
class | debug::ConsoleCallArguments |
void | internal::PrintFunctionCallbackInfo (void *) |
The argument information given to function call callbacks. This class provides access to information about the context of the call, including the receiver, the number and values of arguments, and the holder of the function.
Definition at line 49 of file v8-local-handle.h.
|
private |
Definition at line 615 of file v8-function-callback.h.
Local< Value > v8::FunctionCallbackInfo< T >::Data | ( | ) | const |
The data argument specified when creating the callback.
Definition at line 639 of file v8-function-callback.h.
Isolate * v8::FunctionCallbackInfo< T >::GetIsolate | ( | ) | const |
The current Isolate.
Definition at line 645 of file v8-function-callback.h.
ReturnValue< T > v8::FunctionCallbackInfo< T >::GetReturnValue | ( | ) | const |
The ReturnValue for the call.
Definition at line 650 of file v8-function-callback.h.
bool v8::FunctionCallbackInfo< T >::IsConstructCall | ( | ) | const |
Indicates whether this is a regular call or a construct call.
Definition at line 655 of file v8-function-callback.h.
int v8::FunctionCallbackInfo< T >::Length | ( | ) | const |
The number of available arguments.
Definition at line 660 of file v8-function-callback.h.
Local< Value > v8::FunctionCallbackInfo< T >::NewTarget | ( | ) | const |
For construct calls, this returns the "new.target" value.
Definition at line 634 of file v8-function-callback.h.
Local< Value > v8::FunctionCallbackInfo< T >::operator[] | ( | int | i | ) | const |
Accessor for the available arguments. Returns undefined
if the index is out of bounds.
Definition at line 621 of file v8-function-callback.h.
Local< Object > v8::FunctionCallbackInfo< T >::This | ( | ) | const |
Returns the receiver. This corresponds to the "this" value.
Definition at line 628 of file v8-function-callback.h.
|
friend |
Definition at line 143 of file v8-function-callback.h.
|
friend |
Definition at line 141 of file v8-function-callback.h.
|
friend |
Definition at line 141 of file v8-function-callback.h.
|
friend |
|
private |
Definition at line 177 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 155 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 157 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 151 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 161 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 150 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 164 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 154 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 152 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 160 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 153 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 167 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 149 of file v8-function-callback.h.
|
staticconstexprprivate |
Definition at line 162 of file v8-function-callback.h.
|
private |
Definition at line 179 of file v8-function-callback.h.
|
private |
Definition at line 178 of file v8-function-callback.h.