v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::PropertyCallbackArguments Class Referencefinal

#include <api-arguments.h>

Inheritance diagram for v8::internal::PropertyCallbackArguments:
Collaboration diagram for v8::internal::PropertyCallbackArguments:

Public Types

using T = PropertyCallbackInfo<Value>
 
using Super = CustomArguments<T>
 

Public Member Functions

 PropertyCallbackArguments (Isolate *isolate, Tagged< Object > data, Tagged< Object > self, Tagged< JSObject > holder, Maybe< ShouldThrow > should_throw)
 
 ~PropertyCallbackArguments ()
 
 PropertyCallbackArguments (const PropertyCallbackArguments &)=delete
 
PropertyCallbackArgumentsoperator= (const PropertyCallbackArguments &)=delete
 
DirectHandle< JSAnyCallAccessorGetter (DirectHandle< AccessorInfo > info, DirectHandle< Name > name)
 
V8_WARN_UNUSED_RESULT bool CallAccessorSetter (DirectHandle< AccessorInfo > info, DirectHandle< Name > name, DirectHandle< Object > value)
 
DirectHandle< ObjectCallNamedQuery (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name)
 
DirectHandle< JSAnyCallNamedGetter (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name)
 
v8::Intercepted CallNamedSetter (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name, DirectHandle< Object > value)
 
v8::Intercepted CallNamedDefiner (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name, const v8::PropertyDescriptor &desc)
 
v8::Intercepted CallNamedDeleter (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name)
 
Handle< JSAnyCallNamedDescriptor (DirectHandle< InterceptorInfo > interceptor, DirectHandle< Name > name)
 
DirectHandle< JSObjectOrUndefinedCallNamedEnumerator (DirectHandle< InterceptorInfo > interceptor)
 
DirectHandle< ObjectCallIndexedQuery (DirectHandle< InterceptorInfo > interceptor, uint32_t index)
 
DirectHandle< JSAnyCallIndexedGetter (DirectHandle< InterceptorInfo > interceptor, uint32_t index)
 
v8::Intercepted CallIndexedSetter (DirectHandle< InterceptorInfo > interceptor, uint32_t index, DirectHandle< Object > value)
 
v8::Intercepted CallIndexedDefiner (DirectHandle< InterceptorInfo > interceptor, uint32_t index, const v8::PropertyDescriptor &desc)
 
v8::Intercepted CallIndexedDeleter (DirectHandle< InterceptorInfo > interceptor, uint32_t index)
 
Handle< JSAnyCallIndexedDescriptor (DirectHandle< InterceptorInfo > interceptor, uint32_t index)
 
DirectHandle< JSObjectOrUndefinedCallIndexedEnumerator (DirectHandle< InterceptorInfo > interceptor)
 
void AcceptSideEffects ()
 
Maybe< InterceptorResultGetBooleanReturnValue (v8::Intercepted intercepted, const char *callback_kind_for_error_message, bool ignore_return_value=false)
 
template<typename T >
const v8::PropertyCallbackInfo< T > & GetPropertyCallbackInfo ()
 
bool ShouldThrowOnError ()
 
- Public Member Functions inherited from v8::internal::CustomArguments< PropertyCallbackInfo< Value > >
 ~CustomArguments () override
 
void IterateInstance (RootVisitor *v) override
 
- Public Member Functions inherited from v8::internal::Relocatable
 Relocatable (Isolate *isolate)
 
virtual ~Relocatable ()
 
virtual void PostGarbageCollection ()
 

Static Public Member Functions

template<typename T >
static Tagged< ObjectGetPropertyKey (const PropertyCallbackInfo< T > &info)
 
template<typename T >
static Handle< ObjectGetPropertyKeyHandle (const PropertyCallbackInfo< T > &info)
 
template<typename T >
static uint32_t GetPropertyIndex (const PropertyCallbackInfo< T > &info)
 
- Static Public Member Functions inherited from v8::internal::Relocatable
static void PostGarbageCollectionProcessing (Isolate *isolate)
 
static int ArchiveSpacePerThread ()
 
static char * ArchiveState (Isolate *isolate, char *to)
 
static char * RestoreState (Isolate *isolate, char *from)
 
static void Iterate (Isolate *isolate, RootVisitor *v)
 
static void Iterate (RootVisitor *v, Relocatable *top)
 
static char * Iterate (RootVisitor *v, char *t)
 

Static Public Attributes

static constexpr int kArgsLength = T::kArgsLength
 
static constexpr int kThisIndex = T::kThisIndex
 
static constexpr int kDataIndex = T::kDataIndex
 
static constexpr int kHolderV2Index = T::kHolderV2Index
 
static constexpr int kHolderIndex = T::kHolderIndex
 
static constexpr int kIsolateIndex = T::kIsolateIndex
 
static constexpr int kShouldThrowOnErrorIndex = T::kShouldThrowOnErrorIndex
 
static constexpr int kPropertyKeyIndex = T::kPropertyKeyIndex
 
- Static Public Attributes inherited from v8::internal::CustomArguments< PropertyCallbackInfo< Value > >
static constexpr int kReturnValueIndex
 

Private Member Functions

DirectHandle< JSObjectOrUndefinedCallPropertyEnumerator (DirectHandle< InterceptorInfo > interceptor)
 
Tagged< JSObjectholder () const
 
Tagged< Objectreceiver () const
 

Private Attributes

uint32_t index_ = kMaxUInt32
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::CustomArguments< PropertyCallbackInfo< Value > >
 CustomArguments (Isolate *isolate)
 
Handle< VGetReturnValue (Isolate *isolate) const
 
Isolateisolate () const
 
FullObjectSlot slot_at (int index) const
 
- Protected Member Functions inherited from v8::internal::CustomArgumentsBase
 CustomArgumentsBase (Isolate *isolate)
 
- Protected Attributes inherited from v8::internal::CustomArguments< PropertyCallbackInfo< Value > >
Address values_ [PropertyCallbackInfo< Value >::kArgsLength]
 

Detailed Description

Definition at line 70 of file api-arguments.h.

Member Typedef Documentation

◆ Super

◆ T

Constructor & Destructor Documentation

◆ PropertyCallbackArguments() [1/2]

v8::internal::PropertyCallbackArguments::PropertyCallbackArguments ( Isolate * isolate,
Tagged< Object > data,
Tagged< Object > self,
Tagged< JSObject > holder,
Maybe< ShouldThrow > should_throw )

Definition at line 12 of file api-arguments.cc.

Here is the call graph for this function:

◆ ~PropertyCallbackArguments()

v8::internal::PropertyCallbackArguments::~PropertyCallbackArguments ( )
inline

Definition at line 97 of file api-arguments-inl.h.

◆ PropertyCallbackArguments() [2/2]

v8::internal::PropertyCallbackArguments::PropertyCallbackArguments ( const PropertyCallbackArguments & )
delete

Member Function Documentation

◆ AcceptSideEffects()

void v8::internal::PropertyCallbackArguments::AcceptSideEffects ( )
inline

Definition at line 179 of file api-arguments.h.

Here is the caller graph for this function:

◆ CallAccessorGetter()

DirectHandle< JSAny > v8::internal::PropertyCallbackArguments::CallAccessorGetter ( DirectHandle< AccessorInfo > info,
DirectHandle< Name > name )
inline

Definition at line 416 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallAccessorSetter()

bool v8::internal::PropertyCallbackArguments::CallAccessorSetter ( DirectHandle< AccessorInfo > info,
DirectHandle< Name > name,
DirectHandle< Object > value )
inline

Definition at line 435 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedDefiner()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallIndexedDefiner ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index,
const v8::PropertyDescriptor & desc )
inline

Definition at line 348 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedDeleter()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallIndexedDeleter ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index )
inline

Definition at line 367 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedDescriptor()

Handle< JSAny > v8::internal::PropertyCallbackArguments::CallIndexedDescriptor ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index )
inline

Definition at line 310 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedEnumerator()

DirectHandle< JSObjectOrUndefined > v8::internal::PropertyCallbackArguments::CallIndexedEnumerator ( DirectHandle< InterceptorInfo > interceptor)
inline

Definition at line 266 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CallIndexedGetter()

DirectHandle< JSAny > v8::internal::PropertyCallbackArguments::CallIndexedGetter ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index )
inline

Definition at line 292 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedQuery()

DirectHandle< Object > v8::internal::PropertyCallbackArguments::CallIndexedQuery ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index )
inline

Definition at line 274 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallIndexedSetter()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallIndexedSetter ( DirectHandle< InterceptorInfo > interceptor,
uint32_t index,
DirectHandle< Object > value )
inline

Definition at line 328 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedDefiner()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallNamedDefiner ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name,
const v8::PropertyDescriptor & desc )
inline

Definition at line 226 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedDeleter()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallNamedDeleter ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name )
inline

Definition at line 245 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedDescriptor()

Handle< JSAny > v8::internal::PropertyCallbackArguments::CallNamedDescriptor ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name )
inline

Definition at line 191 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedEnumerator()

DirectHandle< JSObjectOrUndefined > v8::internal::PropertyCallbackArguments::CallNamedEnumerator ( DirectHandle< InterceptorInfo > interceptor)
inline

Definition at line 151 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CallNamedGetter()

DirectHandle< JSAny > v8::internal::PropertyCallbackArguments::CallNamedGetter ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name )
inline

Definition at line 175 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedQuery()

DirectHandle< Object > v8::internal::PropertyCallbackArguments::CallNamedQuery ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name )
inline

Definition at line 159 of file api-arguments-inl.h.

Here is the call graph for this function:

◆ CallNamedSetter()

v8::Intercepted v8::internal::PropertyCallbackArguments::CallNamedSetter ( DirectHandle< InterceptorInfo > interceptor,
DirectHandle< Name > name,
DirectHandle< Object > value )
inline

Definition at line 208 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CallPropertyEnumerator()

DirectHandle< JSObjectOrUndefined > v8::internal::PropertyCallbackArguments::CallPropertyEnumerator ( DirectHandle< InterceptorInfo > interceptor)
inlineprivate

Definition at line 385 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBooleanReturnValue()

Maybe< InterceptorResult > v8::internal::PropertyCallbackArguments::GetBooleanReturnValue ( v8::Intercepted intercepted,
const char * callback_kind_for_error_message,
bool ignore_return_value = false )
inline

Definition at line 108 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPropertyCallbackInfo()

template<typename T >
const v8::PropertyCallbackInfo< T > & v8::internal::PropertyCallbackArguments::GetPropertyCallbackInfo ( )
inline

Definition at line 197 of file api-arguments.h.

Here is the caller graph for this function:

◆ GetPropertyIndex()

template<typename T >
static uint32_t v8::internal::PropertyCallbackArguments::GetPropertyIndex ( const PropertyCallbackInfo< T > & info)
inlinestatic

Definition at line 222 of file api-arguments.h.

Here is the caller graph for this function:

◆ GetPropertyKey()

template<typename T >
static Tagged< Object > v8::internal::PropertyCallbackArguments::GetPropertyKey ( const PropertyCallbackInfo< T > & info)
inlinestatic

Definition at line 209 of file api-arguments.h.

◆ GetPropertyKeyHandle()

template<typename T >
static Handle< Object > v8::internal::PropertyCallbackArguments::GetPropertyKeyHandle ( const PropertyCallbackInfo< T > & info)
inlinestatic

Definition at line 213 of file api-arguments.h.

Here is the caller graph for this function:

◆ holder()

Tagged< JSObject > v8::internal::PropertyCallbackArguments::holder ( ) const
inlineprivate

Definition at line 39 of file api-arguments-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

PropertyCallbackArguments & v8::internal::PropertyCallbackArguments::operator= ( const PropertyCallbackArguments & )
delete

◆ receiver()

Tagged< Object > v8::internal::PropertyCallbackArguments::receiver ( ) const
inlineprivate

Definition at line 43 of file api-arguments-inl.h.

Here is the caller graph for this function:

◆ ShouldThrowOnError()

bool v8::internal::PropertyCallbackArguments::ShouldThrowOnError ( )
inline

Definition at line 203 of file api-arguments.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ index_

uint32_t v8::internal::PropertyCallbackArguments::index_ = kMaxUInt32
private

Definition at line 244 of file api-arguments.h.

◆ kArgsLength

int v8::internal::PropertyCallbackArguments::kArgsLength = T::kArgsLength
staticconstexpr

Definition at line 75 of file api-arguments.h.

◆ kDataIndex

int v8::internal::PropertyCallbackArguments::kDataIndex = T::kDataIndex
staticconstexpr

Definition at line 77 of file api-arguments.h.

◆ kHolderIndex

int v8::internal::PropertyCallbackArguments::kHolderIndex = T::kHolderIndex
staticconstexpr

Definition at line 79 of file api-arguments.h.

◆ kHolderV2Index

int v8::internal::PropertyCallbackArguments::kHolderV2Index = T::kHolderV2Index
staticconstexpr

Definition at line 78 of file api-arguments.h.

◆ kIsolateIndex

int v8::internal::PropertyCallbackArguments::kIsolateIndex = T::kIsolateIndex
staticconstexpr

Definition at line 80 of file api-arguments.h.

◆ kPropertyKeyIndex

int v8::internal::PropertyCallbackArguments::kPropertyKeyIndex = T::kPropertyKeyIndex
staticconstexpr

Definition at line 82 of file api-arguments.h.

◆ kShouldThrowOnErrorIndex

int v8::internal::PropertyCallbackArguments::kShouldThrowOnErrorIndex = T::kShouldThrowOnErrorIndex
staticconstexpr

Definition at line 81 of file api-arguments.h.

◆ kThisIndex

int v8::internal::PropertyCallbackArguments::kThisIndex = T::kThisIndex
staticconstexpr

Definition at line 76 of file api-arguments.h.


The documentation for this class was generated from the following files: