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

#include <accessors.h>

Inheritance diagram for v8::internal::Accessors:
Collaboration diagram for v8::internal::Accessors:

Public Types

using AccessorNameBooleanSetterCallback
 

Public Member Functions

 ACCESSOR_CALLBACK_LIST_GENERATOR (ACCESSOR_CALLBACK_DECLARATION,) static const expr int kAccessorInfoCount
 

Static Public Member Functions

static DirectHandle< AccessorInfoMakeModuleNamespaceEntryInfo (Isolate *isolate, DirectHandle< String > name)
 
static Handle< JSObjectFunctionGetArguments (JavaScriptFrame *frame, int inlined_jsframe_index)
 
static bool IsJSObjectFieldAccessor (Isolate *isolate, DirectHandle< Map > map, DirectHandle< Name > name, FieldIndex *field_index)
 
static MaybeDirectHandle< ObjectReplaceAccessorWithDataProperty (Isolate *isolate, DirectHandle< JSAny > receiver, DirectHandle< JSObject > holder, DirectHandle< Name > name, DirectHandle< Object > value)
 
static V8_EXPORT_PRIVATE DirectHandle< AccessorInfoMakeAccessor (Isolate *isolate, DirectHandle< Name > name, AccessorNameGetterCallback getter, AccessorNameBooleanSetterCallback setter)
 

Static Public Attributes

static constexpr int kAccessorGetterCount
 
static constexpr int kAccessorSetterCount
 
static constexpr int kAccessorCallbackCount
 

Friends

class Heap
 

Detailed Description

Definition at line 66 of file accessors.h.

Member Typedef Documentation

◆ AccessorNameBooleanSetterCallback

Initial value:
void (*)(Local<v8::Name> property, Local<v8::Value> value,
const PropertyCallbackInfo<v8::Boolean>& info)
Handle< SharedFunctionInfo > info
const std::string property
return value
Definition map-inl.h:893

Definition at line 136 of file accessors.h.

Member Function Documentation

◆ ACCESSOR_CALLBACK_LIST_GENERATOR()

v8::internal::Accessors::ACCESSOR_CALLBACK_LIST_GENERATOR ( ACCESSOR_CALLBACK_DECLARATION ) const

◆ FunctionGetArguments()

Handle< JSObject > v8::internal::Accessors::FunctionGetArguments ( JavaScriptFrame * frame,
int inlined_jsframe_index )
static

Definition at line 520 of file accessors.cc.

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

◆ IsJSObjectFieldAccessor()

bool v8::internal::Accessors::IsJSObjectFieldAccessor ( Isolate * isolate,
DirectHandle< Map > map,
DirectHandle< Name > name,
FieldIndex * field_index )
static

Definition at line 64 of file accessors.cc.

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

◆ MakeAccessor()

DirectHandle< AccessorInfo > v8::internal::Accessors::MakeAccessor ( Isolate * isolate,
DirectHandle< Name > name,
AccessorNameGetterCallback getter,
AccessorNameBooleanSetterCallback setter )
static

Definition at line 29 of file accessors.cc.

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

◆ MakeModuleNamespaceEntryInfo()

DirectHandle< AccessorInfo > v8::internal::Accessors::MakeModuleNamespaceEntryInfo ( Isolate * isolate,
DirectHandle< String > name )
static

Definition at line 274 of file accessors.cc.

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

◆ ReplaceAccessorWithDataProperty()

V8_WARN_UNUSED_RESULT MaybeDirectHandle< Object > v8::internal::Accessors::ReplaceAccessorWithDataProperty ( Isolate * isolate,
DirectHandle< JSAny > receiver,
DirectHandle< JSObject > holder,
DirectHandle< Name > name,
DirectHandle< Object > value )
static

Definition at line 88 of file accessors.cc.

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

Friends And Related Symbol Documentation

◆ Heap

friend class Heap
friend

Definition at line 151 of file accessors.h.

Member Data Documentation

◆ kAccessorCallbackCount

int v8::internal::Accessors::kAccessorCallbackCount
staticconstexpr
Initial value:
=
#define ACCESSOR_CALLBACK_LIST_GENERATOR(V, _)
Definition accessors.h:60
#define COUNT_ACCESSOR(...)

Definition at line 104 of file accessors.h.

◆ kAccessorGetterCount

int v8::internal::Accessors::kAccessorGetterCount
staticconstexpr
Initial value:
=
#define ACCESSOR_GETTER_LIST(V)
Definition accessors.h:52

Definition at line 98 of file accessors.h.

◆ kAccessorSetterCount

int v8::internal::Accessors::kAccessorSetterCount
staticconstexpr
Initial value:
=
#define ACCESSOR_SETTER_LIST(V)
Definition accessors.h:54

Definition at line 101 of file accessors.h.


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