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

#include <js-objects.h>

Inheritance diagram for v8::internal::JSReceiver:
Collaboration diagram for v8::internal::JSReceiver:

Public Types

using IntegrityLevel = PropertyAttributes
 

Public Member Functions

NEVER_READ_ONLY_SPACE void SetProperties (Tagged< HeapObject > properties)
 
void initialize_properties (Isolate *isolate)
 
V8_EXPORT_PRIVATE Tagged< Stringclass_name ()
 
V8_EXPORT_PRIVATE std::optional< Tagged< NativeContext > > GetCreationContext ()
 
V8_EXPORT_PRIVATE MaybeDirectHandle< NativeContextGetCreationContext (Isolate *isolate)
 
V8_EXPORT_PRIVATE Tagged< ObjectGetIdentityHash ()
 
V8_EXPORT_PRIVATE Tagged< SmiGetOrCreateIdentityHash (Isolate *isolate)
 
V8_EXPORT_PRIVATE void SetIdentityHash (int masked_hash)
 
bool HasProxyInPrototype (Isolate *isolate)
 
bool IsCodeLike (Isolate *isolate) const
 
template<template< typename > typename HandleType>
requires ( std::is_convertible_v<HandleType<JSReceiver>, DirectHandle<JSReceiver>>)
HandleType< Object >::MaybeType ToPrimitive (Isolate *isolate, HandleType< JSReceiver > receiver, ToPrimitiveHint hint)
 
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<Object>, DirectHandle<Object>>)
HandleType< Object >::MaybeType OrdinaryToPrimitive (Isolate *isolate, DirectHandle< JSReceiver > receiver, OrdinaryToPrimitiveHint hint)
 

Static Public Member Functions

static void DeleteNormalizedProperty (DirectHandle< JSReceiver > object, InternalIndex entry)
 
template<template< typename > typename HandleType>
requires ( std::is_convertible_v<HandleType<JSReceiver>, DirectHandle<JSReceiver>>)
static V8_WARN_UNUSED_RESULT HandleType< Object >::MaybeType ToPrimitive (Isolate *isolate, HandleType< JSReceiver > receiver, ToPrimitiveHint hint=ToPrimitiveHint::kDefault)
 
template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<Object>, DirectHandle<Object>>)
static V8_WARN_UNUSED_RESULT HandleType< Object >::MaybeType OrdinaryToPrimitive (Isolate *isolate, DirectHandle< JSReceiver > receiver, OrdinaryToPrimitiveHint hint)
 
static MaybeDirectHandle< NativeContextGetFunctionRealm (DirectHandle< JSReceiver > receiver)
 
static V8_EXPORT_PRIVATE MaybeHandle< NativeContextGetContextForMicrotask (DirectHandle< JSReceiver > receiver)
 
static MaybeDirectHandle< JSPrototypeGetPrototype (Isolate *isolate, DirectHandle< JSReceiver > receiver)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasInPrototypeChain (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Object > proto)
 
static V8_WARN_UNUSED_RESULT Maybe< boolSetOrCopyDataProperties (Isolate *isolate, DirectHandle< JSReceiver > target, DirectHandle< Object > source, PropertiesEnumerationMode mode, base::Vector< DirectHandle< Object > > excluded_properties={}, bool use_set=true)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolHasProperty (LookupIterator *it)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasElement (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasPropertyOrElement (Isolate *isolate, DirectHandle< JSReceiver > object, PropertyKey key)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolHasOwnProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasOwnProperty (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectGetProperty (Isolate *isolate, DirectHandle< JSReceiver > receiver, const char *key)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectGetProperty (Isolate *isolate, DirectHandle< JSReceiver > receiver, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectGetElement (Isolate *isolate, DirectHandle< JSReceiver > receiver, uint32_t index)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolDeletePropertyOrElement (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name, LanguageMode language_mode=LanguageMode::kSloppy)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolDeletePropertyOrElement (Isolate *isolate, DirectHandle< JSReceiver > object, PropertyKey key, LanguageMode language_mode=LanguageMode::kSloppy)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolDeleteProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name, LanguageMode language_mode=LanguageMode::kSloppy)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDeleteProperty (LookupIterator *it, LanguageMode language_mode)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDeleteElement (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index, LanguageMode language_mode=LanguageMode::kSloppy)
 
static V8_WARN_UNUSED_RESULT Tagged< ObjectDefineProperty (Isolate *isolate, DirectHandle< Object > object, DirectHandle< Object > name, Handle< Object > attributes)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectDefineProperties (Isolate *isolate, DirectHandle< Object > object, DirectHandle< Object > properties)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDefineOwnProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Object > key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCheckPrivateNameStore (LookupIterator *it, bool is_define)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCreateDataProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > key, DirectHandle< Object > value, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCreateDataProperty (Isolate *isolate, DirectHandle< JSAny > object, PropertyKey key, DirectHandle< Object > value, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCreateDataProperty (Isolate *isolate, DirectHandle< JSReceiver > object, PropertyKey key, DirectHandle< Object > value, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolAddPrivateField (LookupIterator *it, DirectHandle< Object > value, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolOrdinaryDefineOwnProperty (Isolate *isolate, DirectHandle< JSObject > object, DirectHandle< Object > key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolOrdinaryDefineOwnProperty (Isolate *isolate, DirectHandle< JSObject > object, const PropertyKey &key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolOrdinaryDefineOwnProperty (LookupIterator *it, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolIsCompatiblePropertyDescriptor (Isolate *isolate, bool extensible, PropertyDescriptor *desc, PropertyDescriptor *current, DirectHandle< Name > property_name, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolValidateAndApplyPropertyDescriptor (Isolate *isolate, LookupIterator *it, bool extensible, PropertyDescriptor *desc, PropertyDescriptor *current, Maybe< ShouldThrow > should_throw, DirectHandle< Name > property_name)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolGetOwnPropertyDescriptor (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Object > key, PropertyDescriptor *desc)
 
static V8_WARN_UNUSED_RESULT Maybe< boolGetOwnPropertyDescriptor (LookupIterator *it, PropertyDescriptor *desc)
 
static V8_WARN_UNUSED_RESULT Maybe< boolSetIntegrityLevel (Isolate *isolate, DirectHandle< JSReceiver > object, IntegrityLevel lvl, ShouldThrow should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolTestIntegrityLevel (Isolate *isolate, DirectHandle< JSReceiver > object, IntegrityLevel lvl)
 
static V8_WARN_UNUSED_RESULT Maybe< boolPreventExtensions (Isolate *isolate, DirectHandle< JSReceiver > object, ShouldThrow should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolIsExtensible (Isolate *isolate, DirectHandle< JSReceiver > object)
 
static MaybeDirectHandle< JSFunctionGetConstructor (Isolate *isolate, DirectHandle< JSReceiver > receiver)
 
static DirectHandle< StringGetConstructorName (Isolate *isolate, DirectHandle< JSReceiver > receiver)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetPropertyAttributes (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetOwnPropertyAttributes (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetOwnPropertyAttributes (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetElementAttributes (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetOwnElementAttributes (Isolate *isolate, DirectHandle< JSReceiver > object, uint32_t index)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetPropertyAttributes (LookupIterator *it)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolSetPrototype (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Object > value, bool from_javascript, ShouldThrow should_throw)
 
static Handle< ObjectGetDataProperty (Isolate *isolate, DirectHandle< JSReceiver > object, DirectHandle< Name > name)
 
static V8_EXPORT_PRIVATE Handle< ObjectGetDataProperty (LookupIterator *it, AllocationPolicy allocation_policy=AllocationPolicy::kAllocationAllowed)
 
static Tagged< SmiCreateIdentityHash (Isolate *isolate, Tagged< JSReceiver > key)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< FixedArrayOwnPropertyKeys (Isolate *isolate, DirectHandle< JSReceiver > object)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< FixedArrayGetOwnValues (Isolate *isolate, DirectHandle< JSReceiver > object, PropertyFilter filter, bool try_fast_path=true)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< FixedArrayGetOwnEntries (Isolate *isolate, DirectHandle< JSReceiver > object, PropertyFilter filter, bool try_fast_path=true)
 

Static Public Attributes

static const int kHashMask = PropertyArray::HashField::kMask
 

Detailed Description

Definition at line 46 of file js-objects.h.

Member Typedef Documentation

◆ IntegrityLevel

Member Function Documentation

◆ AddPrivateField()

Maybe< bool > v8::internal::JSReceiver::AddPrivateField ( LookupIterator * it,
DirectHandle< Object > value,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1776 of file js-objects.cc.

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

◆ CheckPrivateNameStore()

Maybe< bool > v8::internal::JSReceiver::CheckPrivateNameStore ( LookupIterator * it,
bool is_define )
static

Definition at line 204 of file js-objects.cc.

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

◆ class_name()

Tagged< String > v8::internal::JSReceiver::class_name ( )

Definition at line 496 of file js-objects.cc.

Here is the call graph for this function:

◆ CreateDataProperty() [1/3]

Maybe< bool > v8::internal::JSReceiver::CreateDataProperty ( Isolate * isolate,
DirectHandle< JSAny > object,
PropertyKey key,
DirectHandle< Object > value,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1741 of file js-objects.cc.

Here is the call graph for this function:

◆ CreateDataProperty() [2/3]

Maybe< bool > v8::internal::JSReceiver::CreateDataProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > key,
DirectHandle< Object > value,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1731 of file js-objects.cc.

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

◆ CreateDataProperty() [3/3]

Maybe< bool > v8::internal::JSReceiver::CreateDataProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
PropertyKey key,
DirectHandle< Object > value,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1755 of file js-objects.cc.

Here is the call graph for this function:

◆ CreateIdentityHash()

Tagged< Smi > v8::internal::JSReceiver::CreateIdentityHash ( Isolate * isolate,
Tagged< JSReceiver > key )
static

Definition at line 847 of file js-objects.cc.

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

◆ DefineOwnProperty()

Maybe< bool > v8::internal::JSReceiver::DefineOwnProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Object > key,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1136 of file js-objects.cc.

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

◆ DefineProperties()

MaybeDirectHandle< Object > v8::internal::JSReceiver::DefineProperties ( Isolate * isolate,
DirectHandle< Object > object,
DirectHandle< Object > properties )
static

Definition at line 1063 of file js-objects.cc.

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

◆ DefineProperty()

Tagged< Object > v8::internal::JSReceiver::DefineProperty ( Isolate * isolate,
DirectHandle< Object > object,
DirectHandle< Object > name,
Handle< Object > attributes )
static

Definition at line 1029 of file js-objects.cc.

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

◆ DeleteElement()

Maybe< bool > v8::internal::JSReceiver::DeleteElement ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index,
LanguageMode language_mode = LanguageMode::kSloppy )
static

Definition at line 995 of file js-objects.cc.

Here is the call graph for this function:

◆ DeleteNormalizedProperty()

void v8::internal::JSReceiver::DeleteNormalizedProperty ( DirectHandle< JSReceiver > object,
InternalIndex entry )
static

Definition at line 868 of file js-objects.cc.

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

◆ DeleteProperty() [1/2]

Maybe< bool > v8::internal::JSReceiver::DeleteProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name,
LanguageMode language_mode = LanguageMode::kSloppy )
static

Definition at line 1003 of file js-objects.cc.

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

◆ DeleteProperty() [2/2]

Maybe< bool > v8::internal::JSReceiver::DeleteProperty ( LookupIterator * it,
LanguageMode language_mode )
static

Definition at line 911 of file js-objects.cc.

Here is the call graph for this function:

◆ DeletePropertyOrElement() [1/2]

Maybe< bool > v8::internal::JSReceiver::DeletePropertyOrElement ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name,
LanguageMode language_mode = LanguageMode::kSloppy )
static

Definition at line 1011 of file js-objects.cc.

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

◆ DeletePropertyOrElement() [2/2]

Maybe< bool > v8::internal::JSReceiver::DeletePropertyOrElement ( Isolate * isolate,
DirectHandle< JSReceiver > object,
PropertyKey key,
LanguageMode language_mode = LanguageMode::kSloppy )
static

Definition at line 1019 of file js-objects.cc.

Here is the call graph for this function:

◆ GetConstructor()

MaybeDirectHandle< JSFunction > v8::internal::JSReceiver::GetConstructor ( Isolate * isolate,
DirectHandle< JSReceiver > receiver )
static

Definition at line 635 of file js-objects.cc.

Here is the caller graph for this function:

◆ GetConstructorName()

DirectHandle< String > v8::internal::JSReceiver::GetConstructorName ( Isolate * isolate,
DirectHandle< JSReceiver > receiver )
static

Definition at line 641 of file js-objects.cc.

Here is the caller graph for this function:

◆ GetContextForMicrotask()

MaybeHandle< NativeContext > v8::internal::JSReceiver::GetContextForMicrotask ( DirectHandle< JSReceiver > receiver)
static

Definition at line 688 of file js-objects.cc.

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

◆ GetCreationContext() [1/2]

std::optional< Tagged< NativeContext > > v8::internal::JSReceiver::GetCreationContext ( )
inline

Definition at line 939 of file js-objects-inl.h.

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

◆ GetCreationContext() [2/2]

MaybeDirectHandle< NativeContext > v8::internal::JSReceiver::GetCreationContext ( Isolate * isolate)
inline

Definition at line 949 of file js-objects-inl.h.

Here is the call graph for this function:

◆ GetDataProperty() [1/2]

Handle< Object > v8::internal::JSReceiver::GetDataProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name )
inlinestatic

Definition at line 101 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ GetDataProperty() [2/2]

Handle< Object > v8::internal::JSReceiver::GetDataProperty ( LookupIterator * it,
AllocationPolicy allocation_policy = AllocationPolicy::kAllocationAllowed )
static

Definition at line 156 of file js-objects.cc.

Here is the call graph for this function:

◆ GetElement()

MaybeHandle< Object > v8::internal::JSReceiver::GetElement ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
uint32_t index )
inlinestatic

Definition at line 93 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ GetElementAttributes()

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetElementAttributes ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index )
inlinestatic

Definition at line 1013 of file js-objects-inl.h.

◆ GetFunctionRealm()

MaybeDirectHandle< NativeContext > v8::internal::JSReceiver::GetFunctionRealm ( DirectHandle< JSReceiver > receiver)
static

Definition at line 647 of file js-objects.cc.

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

◆ GetIdentityHash()

Tagged< Object > v8::internal::JSReceiver::GetIdentityHash ( )

Definition at line 835 of file js-objects.cc.

Here is the call graph for this function:

◆ GetOrCreateIdentityHash()

Tagged< Smi > v8::internal::JSReceiver::GetOrCreateIdentityHash ( Isolate * isolate)

Definition at line 857 of file js-objects.cc.

Here is the call graph for this function:

◆ GetOwnElementAttributes()

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetOwnElementAttributes ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index )
inlinestatic

Definition at line 1019 of file js-objects-inl.h.

◆ GetOwnEntries()

MaybeDirectHandle< FixedArray > v8::internal::JSReceiver::GetOwnEntries ( Isolate * isolate,
DirectHandle< JSReceiver > object,
PropertyFilter filter,
bool try_fast_path = true )
static

Definition at line 2335 of file js-objects.cc.

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

◆ GetOwnPropertyAttributes() [1/2]

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetOwnPropertyAttributes ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name )
inlinestatic

Definition at line 999 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ GetOwnPropertyAttributes() [2/2]

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetOwnPropertyAttributes ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index )
inlinestatic

Definition at line 1007 of file js-objects-inl.h.

◆ GetOwnPropertyDescriptor() [1/2]

Maybe< bool > v8::internal::JSReceiver::GetOwnPropertyDescriptor ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Object > key,
PropertyDescriptor * desc )
static

Definition at line 1825 of file js-objects.cc.

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

◆ GetOwnPropertyDescriptor() [2/2]

Maybe< bool > v8::internal::JSReceiver::GetOwnPropertyDescriptor ( LookupIterator * it,
PropertyDescriptor * desc )
static

Definition at line 1901 of file js-objects.cc.

Here is the call graph for this function:

◆ GetOwnValues()

MaybeDirectHandle< FixedArray > v8::internal::JSReceiver::GetOwnValues ( Isolate * isolate,
DirectHandle< JSReceiver > object,
PropertyFilter filter,
bool try_fast_path = true )
static

Definition at line 2329 of file js-objects.cc.

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

◆ GetProperty() [1/2]

MaybeHandle< Object > v8::internal::JSReceiver::GetProperty ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
const char * key )
inlinestatic

Definition at line 123 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ GetProperty() [2/2]

MaybeHandle< Object > v8::internal::JSReceiver::GetProperty ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
DirectHandle< Name > name )
inlinestatic

Definition at line 85 of file js-objects-inl.h.

◆ GetPropertyAttributes() [1/2]

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetPropertyAttributes ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name )
inlinestatic

Definition at line 991 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ GetPropertyAttributes() [2/2]

Maybe< PropertyAttributes > v8::internal::JSReceiver::GetPropertyAttributes ( LookupIterator * it)
static

Definition at line 707 of file js-objects.cc.

Here is the call graph for this function:

◆ GetPrototype()

MaybeDirectHandle< JSPrototype > v8::internal::JSReceiver::GetPrototype ( Isolate * isolate,
DirectHandle< JSReceiver > receiver )
inlinestatic

Definition at line 110 of file js-objects-inl.h.

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

◆ HasElement()

Maybe< bool > v8::internal::JSReceiver::HasElement ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index )
inlinestatic

Definition at line 963 of file js-objects-inl.h.

◆ HasInPrototypeChain()

Maybe< bool > v8::internal::JSReceiver::HasInPrototypeChain ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Object > proto )
static

Definition at line 190 of file js-objects.cc.

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

◆ HasOwnProperty() [1/2]

Maybe< bool > v8::internal::JSReceiver::HasOwnProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name )
static

Definition at line 136 of file js-objects.cc.

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

◆ HasOwnProperty() [2/2]

Maybe< bool > v8::internal::JSReceiver::HasOwnProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
uint32_t index )
inlinestatic

Definition at line 977 of file js-objects-inl.h.

Here is the call graph for this function:

◆ HasProperty() [1/2]

Maybe< bool > v8::internal::JSReceiver::HasProperty ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Name > name )
inlinestatic

Definition at line 957 of file js-objects-inl.h.

◆ HasProperty() [2/2]

Maybe< bool > v8::internal::JSReceiver::HasProperty ( LookupIterator * it)
static

Definition at line 98 of file js-objects.cc.

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

◆ HasPropertyOrElement()

Maybe< bool > v8::internal::JSReceiver::HasPropertyOrElement ( Isolate * isolate,
DirectHandle< JSReceiver > object,
PropertyKey key )
inlinestatic

Definition at line 970 of file js-objects-inl.h.

◆ HasProxyInPrototype()

bool v8::internal::JSReceiver::HasProxyInPrototype ( Isolate * isolate)

Definition at line 2359 of file js-objects.cc.

Here is the call graph for this function:

◆ initialize_properties()

void v8::internal::JSReceiver::initialize_properties ( Isolate * isolate)
inline

Definition at line 874 of file js-objects-inl.h.

◆ IsCodeLike()

bool v8::internal::JSReceiver::IsCodeLike ( Isolate * isolate) const

Definition at line 2368 of file js-objects.cc.

Here is the call graph for this function:

◆ IsCompatiblePropertyDescriptor()

Maybe< bool > v8::internal::JSReceiver::IsCompatiblePropertyDescriptor ( Isolate * isolate,
bool extensible,
PropertyDescriptor * desc,
PropertyDescriptor * current,
DirectHandle< Name > property_name,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1458 of file js-objects.cc.

Here is the call graph for this function:

◆ IsExtensible()

Maybe< bool > v8::internal::JSReceiver::IsExtensible ( Isolate * isolate,
DirectHandle< JSReceiver > object )
static

Definition at line 2094 of file js-objects.cc.

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

◆ OrdinaryDefineOwnProperty() [1/3]

Maybe< bool > v8::internal::JSReceiver::OrdinaryDefineOwnProperty ( Isolate * isolate,
DirectHandle< JSObject > object,
const PropertyKey & key,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1389 of file js-objects.cc.

Here is the call graph for this function:

◆ OrdinaryDefineOwnProperty() [2/3]

Maybe< bool > v8::internal::JSReceiver::OrdinaryDefineOwnProperty ( Isolate * isolate,
DirectHandle< JSObject > object,
DirectHandle< Object > key,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 1175 of file js-objects.cc.

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

◆ OrdinaryDefineOwnProperty() [3/3]

static V8_WARN_UNUSED_RESULT Maybe< bool > v8::internal::JSReceiver::OrdinaryDefineOwnProperty ( LookupIterator * it,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

◆ OrdinaryToPrimitive() [1/2]

template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<Object>, DirectHandle<Object>>)
HandleType< Object >::MaybeType v8::internal::JSReceiver::OrdinaryToPrimitive ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
OrdinaryToPrimitiveHint hint )

Definition at line 2142 of file js-objects.cc.

Here is the call graph for this function:

◆ OrdinaryToPrimitive() [2/2]

template<template< typename > typename HandleType>
requires (std::is_convertible_v<HandleType<Object>, DirectHandle<Object>>)
static V8_WARN_UNUSED_RESULT HandleType< Object >::MaybeType v8::internal::JSReceiver::OrdinaryToPrimitive ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
OrdinaryToPrimitiveHint hint )
static

◆ OwnPropertyKeys()

V8_WARN_UNUSED_RESULT MaybeDirectHandle< FixedArray > v8::internal::JSReceiver::OwnPropertyKeys ( Isolate * isolate,
DirectHandle< JSReceiver > object )
inlinestatic

Definition at line 131 of file js-objects-inl.h.

Here is the caller graph for this function:

◆ PreventExtensions()

Maybe< bool > v8::internal::JSReceiver::PreventExtensions ( Isolate * isolate,
DirectHandle< JSReceiver > object,
ShouldThrow should_throw )
static

Definition at line 2079 of file js-objects.cc.

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

◆ SetIdentityHash()

void v8::internal::JSReceiver::SetIdentityHash ( int masked_hash)

Definition at line 806 of file js-objects.cc.

Here is the call graph for this function:

◆ SetIntegrityLevel()

Maybe< bool > v8::internal::JSReceiver::SetIntegrityLevel ( Isolate * isolate,
DirectHandle< JSReceiver > object,
IntegrityLevel lvl,
ShouldThrow should_throw )
static

Definition at line 1964 of file js-objects.cc.

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

◆ SetOrCopyDataProperties()

Maybe< bool > v8::internal::JSReceiver::SetOrCopyDataProperties ( Isolate * isolate,
DirectHandle< JSReceiver > target,
DirectHandle< Object > source,
PropertiesEnumerationMode mode,
base::Vector< DirectHandle< Object > > excluded_properties = {},
bool use_set = true )
static

Definition at line 410 of file js-objects.cc.

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

◆ SetProperties()

void v8::internal::JSReceiver::SetProperties ( Tagged< HeapObject > properties)

Definition at line 818 of file js-objects.cc.

Here is the call graph for this function:

◆ SetPrototype()

Maybe< bool > v8::internal::JSReceiver::SetPrototype ( Isolate * isolate,
DirectHandle< JSReceiver > object,
DirectHandle< Object > value,
bool from_javascript,
ShouldThrow should_throw )
static

Definition at line 2341 of file js-objects.cc.

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

◆ TestIntegrityLevel()

Maybe< bool > v8::internal::JSReceiver::TestIntegrityLevel ( Isolate * isolate,
DirectHandle< JSReceiver > object,
IntegrityLevel lvl )
static

Definition at line 2069 of file js-objects.cc.

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

◆ ToPrimitive() [1/2]

template<template< typename > typename HandleType>
requires ( std::is_convertible_v<HandleType<JSReceiver>, DirectHandle<JSReceiver>>)
HandleType< Object >::MaybeType v8::internal::JSReceiver::ToPrimitive ( Isolate * isolate,
HandleType< JSReceiver > receiver,
ToPrimitiveHint hint )

Definition at line 2109 of file js-objects.cc.

Here is the call graph for this function:

◆ ToPrimitive() [2/2]

template<template< typename > typename HandleType>
requires ( std::is_convertible_v<HandleType<JSReceiver>, DirectHandle<JSReceiver>>)
static V8_WARN_UNUSED_RESULT HandleType< Object >::MaybeType v8::internal::JSReceiver::ToPrimitive ( Isolate * isolate,
HandleType< JSReceiver > receiver,
ToPrimitiveHint hint = ToPrimitiveHint::kDefault )
static
Here is the caller graph for this function:

◆ ValidateAndApplyPropertyDescriptor()

Maybe< bool > v8::internal::JSReceiver::ValidateAndApplyPropertyDescriptor ( Isolate * isolate,
LookupIterator * it,
bool extensible,
PropertyDescriptor * desc,
PropertyDescriptor * current,
Maybe< ShouldThrow > should_throw,
DirectHandle< Name > property_name )
static

Definition at line 1470 of file js-objects.cc.

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

Member Data Documentation

◆ kHashMask

const int v8::internal::JSReceiver::kHashMask = PropertyArray::HashField::kMask
static

Definition at line 353 of file js-objects.h.


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