v8
10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
|
#include <v8-function-callback.h>
Public Member Functions | |
V8_INLINE Isolate * | GetIsolate () const |
V8_INLINE Local< Value > | Data () const |
V8_INLINE Local< Object > | This () const |
V8_INLINE Local< Object > | Holder () const |
V8_INLINE ReturnValue< T > | GetReturnValue () const |
V8_INLINE bool | ShouldThrowOnError () const |
Static Public Attributes | |
static const int | kArgsLength = 7 |
Protected Member Functions | |
V8_INLINE | PropertyCallbackInfo (internal::Address *args) |
Protected Attributes | |
internal::Address * | args_ |
Static Protected Attributes | |
static const int | kShouldThrowOnErrorIndex = 0 |
static const int | kHolderIndex = 1 |
static const int | kIsolateIndex = 2 |
static const int | kReturnValueDefaultValueIndex = 3 |
static const int | kReturnValueIndex = 4 |
static const int | kDataIndex = 5 |
static const int | kThisIndex = 6 |
Friends | |
class | MacroAssembler |
class | internal::PropertyCallbackArguments |
class | internal::CustomArguments< PropertyCallbackInfo > |
The information passed to a property callback about the context of the property access.
Definition at line 145 of file v8-function-callback.h.
|
inlineprotected |
Definition at line 247 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_.
NamedPropertyHandlerConfiguration
or IndexedPropertyHandlerConfiguration.
Definition at line 443 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, PropertyCallbackInfo< T >::kDataIndex, and HandleScope::Local.
Isolate * GetIsolate |
Definition at line 438 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, and PropertyCallbackInfo< T >::kIsolateIndex.
Referenced by PropertyCallbackInfo< T >::ShouldThrowOnError().
ReturnValue< T > GetReturnValue |
Definition at line 458 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, and PropertyCallbackInfo< T >::kReturnValueIndex.
x
and its prototype is y
, and y
has an interceptor. Then info.This()
is x
and info.Holder()
is y
. The Holder() could be a hidden object (the global object, rather than the global proxy).Definition at line 453 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, PropertyCallbackInfo< T >::kHolderIndex, and HandleScope::Local.
bool ShouldThrowOnError |
true
corresponds to ‘'use strict’`.false
when intercepting Reflect.set()
independent of the language mode. Definition at line 463 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, PropertyCallbackInfo< T >::GetIsolate(), Internals::IntToSmi(), Internals::kDontThrow, Internals::kInferShouldThrowMode, PropertyCallbackInfo< T >::kShouldThrowOnErrorIndex, and v8::internal::ShouldThrowOnError().
Reflect.get
, Function.prototype.call
, or similar functions, it is the object passed in as receiver or thisArg.Definition at line 448 of file v8-function-callback.h.
References PropertyCallbackInfo< T >::args_, PropertyCallbackInfo< T >::kThisIndex, and HandleScope::Local.
|
friend |
Definition at line 237 of file v8-function-callback.h.
|
friend |
Definition at line 237 of file v8-function-callback.h.
|
friend |
Definition at line 236 of file v8-function-callback.h.
|
protected |
Definition at line 248 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::Data(), PropertyCallbackInfo< T >::GetIsolate(), PropertyCallbackInfo< T >::GetReturnValue(), PropertyCallbackInfo< T >::Holder(), PropertyCallbackInfo< T >::PropertyCallbackInfo(), PropertyCallbackInfo< T >::ShouldThrowOnError(), and PropertyCallbackInfo< T >::This().
|
static |
Definition at line 233 of file v8-function-callback.h.
|
staticprotected |
Definition at line 244 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::Data().
|
staticprotected |
Definition at line 240 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::Holder().
|
staticprotected |
Definition at line 241 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::GetIsolate().
|
staticprotected |
Definition at line 242 of file v8-function-callback.h.
|
staticprotected |
Definition at line 243 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::GetReturnValue().
|
staticprotected |
Definition at line 239 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::ShouldThrowOnError().
|
staticprotected |
Definition at line 245 of file v8-function-callback.h.
Referenced by PropertyCallbackInfo< T >::This().