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

#include <property-descriptor.h>

Collaboration diagram for v8::internal::PropertyDescriptor:

Public Member Functions

 PropertyDescriptor ()
 
DirectHandle< JSObjectToObject (Isolate *isolate)
 
DirectHandle< PropertyDescriptorObjectToPropertyDescriptorObject (Isolate *isolate)
 
bool is_empty () const
 
bool IsRegularAccessorProperty () const
 
bool IsRegularDataProperty () const
 
bool enumerable () const
 
void set_enumerable (bool enumerable)
 
bool has_enumerable () const
 
bool configurable () const
 
void set_configurable (bool configurable)
 
bool has_configurable () const
 
Handle< JSAnyvalue () const
 
void set_value (DirectHandle< JSAny > value)
 
bool has_value () const
 
bool writable () const
 
void set_writable (bool writable)
 
bool has_writable () const
 
Handle< UnionOf< JSAny, FunctionTemplateInfo > > get () const
 
void set_get (DirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > get)
 
bool has_get () const
 
Handle< UnionOf< JSAny, FunctionTemplateInfo > > set () const
 
void set_set (DirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > set)
 
bool has_set () const
 
DirectHandle< JSAnyname () const
 
void set_name (DirectHandle< JSAny > name)
 
PropertyAttributes ToAttributes ()
 

Static Public Member Functions

static bool IsAccessorDescriptor (PropertyDescriptor *desc)
 
static bool IsDataDescriptor (PropertyDescriptor *desc)
 
static bool IsGenericDescriptor (PropertyDescriptor *desc)
 
static bool ToPropertyDescriptor (Isolate *isolate, Handle< JSAny > obj, PropertyDescriptor *desc)
 
static void CompletePropertyDescriptor (Isolate *isolate, PropertyDescriptor *desc)
 

Private Attributes

bool enumerable_: 1
 
bool has_enumerable_: 1
 
bool configurable_: 1
 
bool has_configurable_: 1
 
bool writable_: 1
 
bool has_writable_: 1
 
IndirectHandle< JSAnyvalue_
 
IndirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > get_
 
IndirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > set_
 
IndirectHandle< JSAnyname_
 

Detailed Description

Definition at line 18 of file property-descriptor.h.

Constructor & Destructor Documentation

◆ PropertyDescriptor()

v8::internal::PropertyDescriptor::PropertyDescriptor ( )
inline

Definition at line 20 of file property-descriptor.h.

Member Function Documentation

◆ CompletePropertyDescriptor()

void v8::internal::PropertyDescriptor::CompletePropertyDescriptor ( Isolate * isolate,
PropertyDescriptor * desc )
static

Definition at line 314 of file property-descriptor.cc.

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

◆ configurable()

bool v8::internal::PropertyDescriptor::configurable ( ) const
inline

Definition at line 79 of file property-descriptor.h.

Here is the caller graph for this function:

◆ enumerable()

bool v8::internal::PropertyDescriptor::enumerable ( ) const
inline

Definition at line 72 of file property-descriptor.h.

Here is the caller graph for this function:

◆ get()

Handle< UnionOf< JSAny, FunctionTemplateInfo > > v8::internal::PropertyDescriptor::get ( ) const
inline

Definition at line 97 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_configurable()

bool v8::internal::PropertyDescriptor::has_configurable ( ) const
inline

Definition at line 84 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_enumerable()

bool v8::internal::PropertyDescriptor::has_enumerable ( ) const
inline

Definition at line 77 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_get()

bool v8::internal::PropertyDescriptor::has_get ( ) const
inline

Definition at line 101 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_set()

bool v8::internal::PropertyDescriptor::has_set ( ) const
inline

Definition at line 107 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_value()

bool v8::internal::PropertyDescriptor::has_value ( ) const
inline

Definition at line 88 of file property-descriptor.h.

Here is the caller graph for this function:

◆ has_writable()

bool v8::internal::PropertyDescriptor::has_writable ( ) const
inline

Definition at line 95 of file property-descriptor.h.

Here is the caller graph for this function:

◆ is_empty()

bool v8::internal::PropertyDescriptor::is_empty ( ) const
inline

Definition at line 57 of file property-descriptor.h.

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

◆ IsAccessorDescriptor()

static bool v8::internal::PropertyDescriptor::IsAccessorDescriptor ( PropertyDescriptor * desc)
inlinestatic

Definition at line 29 of file property-descriptor.h.

Here is the caller graph for this function:

◆ IsDataDescriptor()

static bool v8::internal::PropertyDescriptor::IsDataDescriptor ( PropertyDescriptor * desc)
inlinestatic

Definition at line 34 of file property-descriptor.h.

Here is the caller graph for this function:

◆ IsGenericDescriptor()

static bool v8::internal::PropertyDescriptor::IsGenericDescriptor ( PropertyDescriptor * desc)
inlinestatic

Definition at line 39 of file property-descriptor.h.

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

◆ IsRegularAccessorProperty()

bool v8::internal::PropertyDescriptor::IsRegularAccessorProperty ( ) const
inline

Definition at line 62 of file property-descriptor.h.

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

◆ IsRegularDataProperty()

bool v8::internal::PropertyDescriptor::IsRegularDataProperty ( ) const
inline

Definition at line 67 of file property-descriptor.h.

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

◆ name()

DirectHandle< JSAny > v8::internal::PropertyDescriptor::name ( ) const
inline

Definition at line 109 of file property-descriptor.h.

◆ set()

Handle< UnionOf< JSAny, FunctionTemplateInfo > > v8::internal::PropertyDescriptor::set ( ) const
inline

Definition at line 103 of file property-descriptor.h.

Here is the caller graph for this function:

◆ set_configurable()

void v8::internal::PropertyDescriptor::set_configurable ( bool configurable)
inline

Definition at line 80 of file property-descriptor.h.

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

◆ set_enumerable()

void v8::internal::PropertyDescriptor::set_enumerable ( bool enumerable)
inline

Definition at line 73 of file property-descriptor.h.

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

◆ set_get()

void v8::internal::PropertyDescriptor::set_get ( DirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > get)
inline

Definition at line 98 of file property-descriptor.h.

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

◆ set_name()

void v8::internal::PropertyDescriptor::set_name ( DirectHandle< JSAny > name)
inline

Definition at line 110 of file property-descriptor.h.

Here is the call graph for this function:

◆ set_set()

void v8::internal::PropertyDescriptor::set_set ( DirectHandle< UnionOf< JSAny, FunctionTemplateInfo > > set)
inline

Definition at line 104 of file property-descriptor.h.

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

◆ set_value()

void v8::internal::PropertyDescriptor::set_value ( DirectHandle< JSAny > value)
inline

Definition at line 87 of file property-descriptor.h.

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

◆ set_writable()

void v8::internal::PropertyDescriptor::set_writable ( bool writable)
inline

Definition at line 91 of file property-descriptor.h.

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

◆ ToAttributes()

PropertyAttributes v8::internal::PropertyDescriptor::ToAttributes ( )
inline

Definition at line 112 of file property-descriptor.h.

Here is the call graph for this function:

◆ ToObject()

DirectHandle< JSObject > v8::internal::PropertyDescriptor::ToObject ( Isolate * isolate)

Definition at line 133 of file property-descriptor.cc.

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

◆ ToPropertyDescriptor()

bool v8::internal::PropertyDescriptor::ToPropertyDescriptor ( Isolate * isolate,
Handle< JSAny > obj,
PropertyDescriptor * desc )
static

Definition at line 196 of file property-descriptor.cc.

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

◆ ToPropertyDescriptorObject()

DirectHandle< PropertyDescriptorObject > v8::internal::PropertyDescriptor::ToPropertyDescriptorObject ( Isolate * isolate)

Definition at line 356 of file property-descriptor.cc.

Here is the call graph for this function:

◆ value()

Handle< JSAny > v8::internal::PropertyDescriptor::value ( ) const
inline

Definition at line 86 of file property-descriptor.h.

Here is the caller graph for this function:

◆ writable()

bool v8::internal::PropertyDescriptor::writable ( ) const
inline

Definition at line 90 of file property-descriptor.h.

Here is the caller graph for this function:

Member Data Documentation

◆ configurable_

bool v8::internal::PropertyDescriptor::configurable_
private

Definition at line 122 of file property-descriptor.h.

◆ enumerable_

bool v8::internal::PropertyDescriptor::enumerable_
private

Definition at line 120 of file property-descriptor.h.

◆ get_

IndirectHandle<UnionOf<JSAny, FunctionTemplateInfo> > v8::internal::PropertyDescriptor::get_
private

Definition at line 130 of file property-descriptor.h.

◆ has_configurable_

bool v8::internal::PropertyDescriptor::has_configurable_
private

Definition at line 123 of file property-descriptor.h.

◆ has_enumerable_

bool v8::internal::PropertyDescriptor::has_enumerable_
private

Definition at line 121 of file property-descriptor.h.

◆ has_writable_

bool v8::internal::PropertyDescriptor::has_writable_
private

Definition at line 125 of file property-descriptor.h.

◆ name_

IndirectHandle<JSAny> v8::internal::PropertyDescriptor::name_
private

Definition at line 132 of file property-descriptor.h.

◆ set_

IndirectHandle<UnionOf<JSAny, FunctionTemplateInfo> > v8::internal::PropertyDescriptor::set_
private

Definition at line 131 of file property-descriptor.h.

◆ value_

IndirectHandle<JSAny> v8::internal::PropertyDescriptor::value_
private

Definition at line 129 of file property-descriptor.h.

◆ writable_

bool v8::internal::PropertyDescriptor::writable_
private

Definition at line 124 of file property-descriptor.h.


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