V8 Project
v8::PropertyCallbackInfo< T > Class Template Reference

The information passed to a property callback about the context of the property access. More...

#include <v8.h>

+ Collaboration diagram for v8::PropertyCallbackInfo< T >:

Public Member Functions

IsolateGetIsolate () const
 
Local< ValueData () const
 
Local< ObjectThis () const
 
Local< ObjectHolder () const
 
ReturnValue< TGetReturnValue () const
 

Static Public Attributes

static const int kArgsLength = 6
 

Protected Member Functions

 PropertyCallbackInfo (internal::Object **args)
 

Protected Attributes

internal::Object ** args_
 

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 kThisIndex = 5
 

Friends

class MacroAssembler
 
class internal::PropertyCallbackArguments
 
class internal::CustomArguments< PropertyCallbackInfo >
 

Detailed Description

template<typename T>
class v8::PropertyCallbackInfo< T >

The information passed to a property callback about the context of the property access.

Definition at line 2691 of file v8.h.

Constructor & Destructor Documentation

◆ PropertyCallbackInfo()

template<typename T >
v8::PropertyCallbackInfo< T >::PropertyCallbackInfo ( internal::Object **  args)
inlineprotected

Definition at line 2712 of file v8.h.

2712 : args_(args) {}
internal::Object ** args_
Definition: v8.h:2713

Member Function Documentation

◆ Data()

template<typename T >
Local< Value > v8::PropertyCallbackInfo< T >::Data
inline

Definition at line 6813 of file v8.h.

6813  {
6814  return Local<Value>(reinterpret_cast<Value*>(&args_[kDataIndex]));
6815 }
static const int kDataIndex
Definition: v8.h:2709

Referenced by v8::internal::ModuleGetExport(), and v8::internal::ModuleSetExport().

+ Here is the caller graph for this function:

◆ GetIsolate()

template<typename T >
Isolate * v8::PropertyCallbackInfo< T >::GetIsolate
inline

Definition at line 6807 of file v8.h.

6807  {
6808  return *reinterpret_cast<Isolate**>(&args_[kIsolateIndex]);
6809 }
static const int kIsolateIndex
Definition: v8.h:2706

Referenced by v8::internal::InvokeAccessorGetterCallback(), v8::Shell::RealmSharedGet(), and v8::Shell::RealmSharedSet().

+ Here is the caller graph for this function:

◆ GetReturnValue()

template<typename T >
ReturnValue< T > v8::PropertyCallbackInfo< T >::GetReturnValue
inline

Definition at line 6831 of file v8.h.

6831  {
6832  return ReturnValue<T>(&args_[kReturnValueIndex]);
6833 }
static const int kReturnValueIndex
Definition: v8.h:2708

Referenced by v8::internal::ModuleGetExport(), and v8::Shell::RealmSharedGet().

+ Here is the caller graph for this function:

◆ Holder()

template<typename T >
Local< Object > v8::PropertyCallbackInfo< T >::Holder
inline

Definition at line 6825 of file v8.h.

6825  {
6826  return Local<Object>(reinterpret_cast<Object*>(&args_[kHolderIndex]));
6827 }
static const int kHolderIndex
Definition: v8.h:2705
kSerializedDataOffset Object
Definition: objects-inl.h:5322

Referenced by v8::internal::ModuleGetExport(), v8::internal::ModuleSetExport(), and v8::internal::SetPropertyOnInstanceIfInherited().

+ Here is the caller graph for this function:

◆ This()

template<typename T >
Local< Object > v8::PropertyCallbackInfo< T >::This
inline

Definition at line 6819 of file v8.h.

6819  {
6820  return Local<Object>(reinterpret_cast<Object*>(&args_[kThisIndex]));
6821 }
static const int kThisIndex
Definition: v8.h:2710

Referenced by v8::internal::SetPropertyOnInstanceIfInherited().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ internal::CustomArguments< PropertyCallbackInfo >

template<typename T >
friend class internal::CustomArguments< PropertyCallbackInfo >
friend

Definition at line 2703 of file v8.h.

◆ internal::PropertyCallbackArguments

template<typename T >
friend class internal::PropertyCallbackArguments
friend

Definition at line 2703 of file v8.h.

◆ MacroAssembler

template<typename T >
friend class MacroAssembler
friend

Definition at line 2702 of file v8.h.

Member Data Documentation

◆ args_

template<typename T >
internal::Object** v8::PropertyCallbackInfo< T >::args_
protected

Definition at line 2713 of file v8.h.

◆ kArgsLength

template<typename T >
const int v8::PropertyCallbackInfo< T >::kArgsLength = 6
static

Definition at line 2699 of file v8.h.

◆ kDataIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kDataIndex = 4
staticprotected

◆ kHolderIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kHolderIndex = 0
staticprotected

◆ kIsolateIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kIsolateIndex = 1
staticprotected

◆ kReturnValueDefaultValueIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kReturnValueDefaultValueIndex = 2
staticprotected

◆ kReturnValueIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kReturnValueIndex = 3
staticprotected

◆ kThisIndex

template<typename T >
const int v8::PropertyCallbackInfo< T >::kThisIndex = 5
staticprotected

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