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

#include <js-proxy.h>

Inheritance diagram for v8::internal::JSProxy:
Collaboration diagram for v8::internal::JSProxy:

Public Types

enum  AccessKind { kGet , kSet }
 
using BodyDescriptor
 

Public Member Functions

V8_INLINE bool IsRevoked () const
 

Static Public Member Functions

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< JSProxyNew (Isolate *isolate, DirectHandle< Object >, DirectHandle< Object >)
 
static void Revoke (DirectHandle< JSProxy > proxy)
 
static MaybeDirectHandle< JSPrototypeGetPrototype (DirectHandle< JSProxy > receiver)
 
static V8_WARN_UNUSED_RESULT Maybe< boolSetPrototype (Isolate *isolate, DirectHandle< JSProxy > proxy, DirectHandle< Object > value, bool from_javascript, ShouldThrow should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolIsExtensible (DirectHandle< JSProxy > proxy)
 
static V8_WARN_UNUSED_RESULT Maybe< boolIsArray (DirectHandle< JSProxy > proxy)
 
static V8_WARN_UNUSED_RESULT Maybe< boolPreventExtensions (DirectHandle< JSProxy > proxy, ShouldThrow should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolGetOwnPropertyDescriptor (Isolate *isolate, DirectHandle< JSProxy > proxy, DirectHandle< Name > name, PropertyDescriptor *desc)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDefineOwnProperty (Isolate *isolate, DirectHandle< JSProxy > object, DirectHandle< Object > key, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolHasProperty (Isolate *isolate, DirectHandle< JSProxy > proxy, DirectHandle< Name > name)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCheckHasTrap (Isolate *isolate, DirectHandle< Name > name, DirectHandle< JSReceiver > target)
 
static V8_WARN_UNUSED_RESULT Maybe< boolCheckDeleteTrap (Isolate *isolate, DirectHandle< Name > name, DirectHandle< JSReceiver > target)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSAnyGetProperty (Isolate *isolate, DirectHandle< JSProxy > proxy, DirectHandle< Name > name, DirectHandle< JSAny > receiver, bool *was_found)
 
static MaybeHandle< JSAnyCheckGetSetTrapResult (Isolate *isolate, DirectHandle< Name > name, DirectHandle< JSReceiver > target, DirectHandle< Object > trap_result, AccessKind access_kind)
 
static V8_WARN_UNUSED_RESULT Maybe< boolSetProperty (DirectHandle< JSProxy > proxy, DirectHandle< Name > name, DirectHandle< Object > value, DirectHandle< JSAny > receiver, Maybe< ShouldThrow > should_throw)
 
static V8_WARN_UNUSED_RESULT Maybe< boolDeletePropertyOrElement (DirectHandle< JSProxy > proxy, DirectHandle< Name > name, LanguageMode language_mode)
 
static V8_WARN_UNUSED_RESULT Maybe< PropertyAttributesGetPropertyAttributes (LookupIterator *it)
 
static Maybe< boolSetPrivateSymbol (Isolate *isolate, DirectHandle< JSProxy > proxy, DirectHandle< Symbol > private_name, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
 

Static Public Attributes

static const int kMaxIterationLimit = 100 * 1024
 

Detailed Description

Definition at line 23 of file js-proxy.h.

Member Typedef Documentation

◆ BodyDescriptor

Initial value:
FixedBodyDescriptor<JSReceiver::kPropertiesOrHashOffset, kSize, kSize>

Definition at line 113 of file js-proxy.h.

Member Enumeration Documentation

◆ AccessKind

Enumerator
kGet 
kSet 

Definition at line 80 of file js-proxy.h.

Member Function Documentation

◆ CheckDeleteTrap()

Maybe< bool > v8::internal::JSProxy::CheckDeleteTrap ( Isolate * isolate,
DirectHandle< Name > name,
DirectHandle< JSReceiver > target )
static

Definition at line 3054 of file objects.cc.

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

◆ CheckGetSetTrapResult()

MaybeHandle< JSAny > v8::internal::JSProxy::CheckGetSetTrapResult ( Isolate * isolate,
DirectHandle< Name > name,
DirectHandle< JSReceiver > target,
DirectHandle< Object > trap_result,
AccessKind access_kind )
static

Definition at line 1379 of file objects.cc.

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

◆ CheckHasTrap()

Maybe< bool > v8::internal::JSProxy::CheckHasTrap ( Isolate * isolate,
DirectHandle< Name > name,
DirectHandle< JSReceiver > target )
static

Definition at line 2929 of file objects.cc.

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

◆ DefineOwnProperty()

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

Definition at line 3317 of file objects.cc.

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

◆ DeletePropertyOrElement()

Maybe< bool > v8::internal::JSProxy::DeletePropertyOrElement ( DirectHandle< JSProxy > proxy,
DirectHandle< Name > name,
LanguageMode language_mode )
static

Definition at line 3010 of file objects.cc.

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

◆ GetOwnPropertyDescriptor()

Maybe< bool > v8::internal::JSProxy::GetOwnPropertyDescriptor ( Isolate * isolate,
DirectHandle< JSProxy > proxy,
DirectHandle< Name > name,
PropertyDescriptor * desc )
static

Definition at line 3490 of file objects.cc.

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

◆ GetProperty()

MaybeHandle< JSAny > v8::internal::JSProxy::GetProperty ( Isolate * isolate,
DirectHandle< JSProxy > proxy,
DirectHandle< Name > name,
DirectHandle< JSAny > receiver,
bool * was_found )
static

Definition at line 1326 of file objects.cc.

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

◆ GetPropertyAttributes()

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

Definition at line 3096 of file objects.cc.

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

◆ GetPrototype()

MaybeDirectHandle< JSPrototype > v8::internal::JSProxy::GetPrototype ( DirectHandle< JSProxy > receiver)
static

Definition at line 1456 of file objects.cc.

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

◆ HasProperty()

Maybe< bool > v8::internal::JSProxy::HasProperty ( Isolate * isolate,
DirectHandle< JSProxy > proxy,
DirectHandle< Name > name )
static

Definition at line 2885 of file objects.cc.

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

◆ IsArray()

Maybe< bool > v8::internal::JSProxy::IsArray ( DirectHandle< JSProxy > proxy)
static

Definition at line 2864 of file objects.cc.

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

◆ IsExtensible()

Maybe< bool > v8::internal::JSProxy::IsExtensible ( DirectHandle< JSProxy > proxy)
static

Definition at line 3663 of file objects.cc.

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

◆ IsRevoked()

bool v8::internal::JSProxy::IsRevoked ( ) const

Definition at line 25 of file js-proxy-inl.h.

◆ New()

MaybeDirectHandle< JSProxy > v8::internal::JSProxy::New ( Isolate * isolate,
DirectHandle< Object > target,
DirectHandle< Object > handler )
static

Definition at line 3083 of file objects.cc.

Here is the call graph for this function:

◆ PreventExtensions()

Maybe< bool > v8::internal::JSProxy::PreventExtensions ( DirectHandle< JSProxy > proxy,
ShouldThrow should_throw )
static

Definition at line 3617 of file objects.cc.

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

◆ Revoke()

void v8::internal::JSProxy::Revoke ( DirectHandle< JSProxy > proxy)
static

Definition at line 2851 of file objects.cc.

◆ SetPrivateSymbol()

Maybe< bool > v8::internal::JSProxy::SetPrivateSymbol ( Isolate * isolate,
DirectHandle< JSProxy > proxy,
DirectHandle< Symbol > private_name,
PropertyDescriptor * desc,
Maybe< ShouldThrow > should_throw )
static

Definition at line 3443 of file objects.cc.

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

◆ SetProperty()

Maybe< bool > v8::internal::JSProxy::SetProperty ( DirectHandle< JSProxy > proxy,
DirectHandle< Name > name,
DirectHandle< Object > value,
DirectHandle< JSAny > receiver,
Maybe< ShouldThrow > should_throw )
static

Definition at line 2958 of file objects.cc.

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

◆ SetPrototype()

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

Definition at line 4822 of file objects.cc.

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

Member Data Documentation

◆ kMaxIterationLimit

const int v8::internal::JSProxy::kMaxIterationLimit = 100 * 1024
static

Definition at line 104 of file js-proxy.h.


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