v8
8.1.307(node14.1.0)
V8 is Google's open source JavaScript engine
|
#include <v8.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< Object > | Holder () 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 |
Static Public Attributes | |
static const int | kArgsLength = 6 |
Protected Member Functions | |
V8_INLINE | FunctionCallbackInfo (internal::Address *implicit_args, internal::Address *values, int length) |
Protected Attributes | |
internal::Address * | implicit_args_ |
internal::Address * | values_ |
int | length_ |
Static Protected Attributes | |
static const int | kHolderIndex = 0 |
static const int | kIsolateIndex = 1 |
static const int | kReturnValueDefaultValueIndex = 2 |
static const int | kReturnValueIndex = 3 |
static const int | kDataIndex = 4 |
static const int | kNewTargetIndex = 5 |
Friends | |
class | internal::FunctionCallbackArguments |
class | internal::CustomArguments< FunctionCallbackInfo > |
class | debug::ConsoleCallArguments |
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.
|
protected |
Definition at line 11074 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, FunctionCallbackInfo< T >::length_, and FunctionCallbackInfo< T >::values_.
The data argument specified when creating the callback.
Definition at line 11105 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, FunctionCallbackInfo< T >::kDataIndex, and V8::Local.
Isolate * GetIsolate | ( | ) | const |
The current Isolate.
Definition at line 11111 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, and FunctionCallbackInfo< T >::kIsolateIndex.
Referenced by FunctionCallbackInfo< T >::operator[]().
ReturnValue< T > GetReturnValue | ( | ) | const |
The ReturnValue for the call.
Definition at line 11117 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, FunctionCallbackInfo< T >::kReturnValueIndex, and ReturnValue< T >::ReturnValue.
If the callback was created without a Signature, this is the same value as This(). If there is a signature, and the signature didn't match This() but one of its hidden prototypes, this will be the respective hidden prototype.
Note that this is not the prototype of This() on which the accessor referencing this callback was found (which in V8 internally is often referred to as holder [sic]).
Definition at line 11093 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, FunctionCallbackInfo< T >::kHolderIndex, and V8::Local.
bool IsConstructCall | ( | ) | const |
Indicates whether this is a regular call or a construct call.
Definition at line 11123 of file v8.h.
References FunctionCallbackInfo< T >::NewTarget().
int Length | ( | ) | const |
The number of available arguments.
Definition at line 11129 of file v8.h.
References FunctionCallbackInfo< T >::length_.
For construct calls, this returns the "new.target" value.
Definition at line 11099 of file v8.h.
References FunctionCallbackInfo< T >::implicit_args_, FunctionCallbackInfo< T >::kNewTargetIndex, and V8::Local.
Referenced by FunctionCallbackInfo< T >::IsConstructCall().
Accessor for the available arguments. Returns undefined
if the index is out of bounds.
Definition at line 11080 of file v8.h.
References FunctionCallbackInfo< T >::GetIsolate(), FunctionCallbackInfo< T >::length_, V8::Local, and FunctionCallbackInfo< T >::values_.
Returns the receiver. This corresponds to the "this" value.
Definition at line 11087 of file v8.h.
References V8::Local, and FunctionCallbackInfo< T >::values_.
|
friend |
|
protected |
Definition at line 4305 of file v8.h.
Referenced by FunctionCallbackInfo< T >::Data(), FunctionCallbackInfo< T >::FunctionCallbackInfo(), FunctionCallbackInfo< T >::GetIsolate(), FunctionCallbackInfo< T >::GetReturnValue(), FunctionCallbackInfo< T >::Holder(), and FunctionCallbackInfo< T >::NewTarget().
|
staticprotected |
Definition at line 4300 of file v8.h.
Referenced by FunctionCallbackInfo< T >::Data().
|
staticprotected |
Definition at line 4296 of file v8.h.
Referenced by FunctionCallbackInfo< T >::Holder().
|
staticprotected |
Definition at line 4297 of file v8.h.
Referenced by FunctionCallbackInfo< T >::GetIsolate().
|
staticprotected |
Definition at line 4301 of file v8.h.
Referenced by FunctionCallbackInfo< T >::NewTarget().
|
staticprotected |
Definition at line 4299 of file v8.h.
Referenced by FunctionCallbackInfo< T >::GetReturnValue().
|
protected |
Definition at line 4307 of file v8.h.
Referenced by FunctionCallbackInfo< T >::FunctionCallbackInfo(), FunctionCallbackInfo< T >::Length(), and FunctionCallbackInfo< T >::operator[]().
|
protected |
Definition at line 4306 of file v8.h.
Referenced by FunctionCallbackInfo< T >::FunctionCallbackInfo(), FunctionCallbackInfo< T >::operator[](), and FunctionCallbackInfo< T >::This().