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

#include <runtime.h>

Inheritance diagram for v8::internal::Runtime:
Collaboration diagram for v8::internal::Runtime:

Classes

struct  Function
 

Public Types

enum  FunctionId : int32_t { FOR_EACH_INTRINSIC }
 
enum  IntrinsicType { RUNTIME , INLINE }
 

Static Public Member Functions

static bool NeedsExactContext (FunctionId id)
 
static bool IsNonReturning (FunctionId id)
 
static bool MayAllocate (FunctionId id)
 
static bool IsEnabledForFuzzing (FunctionId id)
 
static const FunctionFunctionForName (const unsigned char *name, int length)
 
static V8_EXPORT_PRIVATE const FunctionFunctionForId (FunctionId id)
 
static const FunctionFunctionForEntry (Address ref)
 
static const FunctionRuntimeFunctionTable (Isolate *isolate)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT Maybe< boolDeleteObjectProperty (Isolate *isolate, DirectHandle< JSReceiver > receiver, DirectHandle< Object > key, LanguageMode language_mode)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectSetObjectProperty (Isolate *isolate, DirectHandle< JSAny > object, DirectHandle< Object > key, DirectHandle< Object > value, MaybeDirectHandle< JSAny > receiver, StoreOrigin store_origin, Maybe< ShouldThrow > should_throw=Nothing< ShouldThrow >())
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectSetObjectProperty (Isolate *isolate, DirectHandle< JSAny > object, DirectHandle< Object > key, DirectHandle< Object > value, StoreOrigin store_origin, Maybe< ShouldThrow > should_throw=Nothing< ShouldThrow >())
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectDefineObjectOwnProperty (Isolate *isolate, DirectHandle< JSAny > object, DirectHandle< Object > key, DirectHandle< Object > value, StoreOrigin store_origin)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectGetObjectProperty (Isolate *isolate, DirectHandle< JSAny > lookup_start_object, DirectHandle< Object > key, DirectHandle< JSAny > receiver={}, bool *is_found=nullptr)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectGetPrivateMember (Isolate *isolate, DirectHandle< JSReceiver > receiver, DirectHandle< String > desc)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectSetPrivateMember (Isolate *isolate, DirectHandle< JSReceiver > receiver, DirectHandle< String > desc, DirectHandle< Object > value)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectHasProperty (Isolate *isolate, DirectHandle< Object > object, DirectHandle< Object > key)
 
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeHandle< JSArrayGetInternalProperties (Isolate *isolate, DirectHandle< Object >)
 
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< ObjectThrowIteratorError (Isolate *isolate, DirectHandle< Object > object)
 

Static Public Attributes

static constexpr int kNumInlineFunctions
 
static const int kNotFound = -1
 

Detailed Description

Definition at line 898 of file runtime.h.

Member Enumeration Documentation

◆ FunctionId

Enumerator
FOR_EACH_INTRINSIC 

Definition at line 900 of file runtime.h.

◆ IntrinsicType

Enumerator
RUNTIME 
INLINE 

Definition at line 914 of file runtime.h.

Member Function Documentation

◆ DefineObjectOwnProperty()

MaybeDirectHandle< Object > v8::internal::Runtime::DefineObjectOwnProperty ( Isolate * isolate,
DirectHandle< JSAny > object,
DirectHandle< Object > key,
DirectHandle< Object > value,
StoreOrigin store_origin )
static

Definition at line 421 of file runtime-object.cc.

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

◆ DeleteObjectProperty()

Maybe< bool > v8::internal::Runtime::DeleteObjectProperty ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
DirectHandle< Object > key,
LanguageMode language_mode )
static

Definition at line 75 of file runtime-object.cc.

Here is the call graph for this function:

◆ FunctionForEntry()

const Runtime::Function * v8::internal::Runtime::FunctionForEntry ( Address ref)
static

Definition at line 340 of file runtime.cc.

Here is the caller graph for this function:

◆ FunctionForId()

const Runtime::Function * v8::internal::Runtime::FunctionForId ( Runtime::FunctionId id)
static

Definition at line 350 of file runtime.cc.

Here is the caller graph for this function:

◆ FunctionForName()

const Runtime::Function * v8::internal::Runtime::FunctionForName ( const unsigned char * name,
int length )
static

Definition at line 326 of file runtime.cc.

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

◆ GetInternalProperties()

MaybeHandle< JSArray > v8::internal::Runtime::GetInternalProperties ( Isolate * isolate,
DirectHandle< Object > object )
static

Definition at line 201 of file runtime-debug.cc.

Here is the call graph for this function:

◆ GetObjectProperty()

MaybeDirectHandle< Object > v8::internal::Runtime::GetObjectProperty ( Isolate * isolate,
DirectHandle< JSAny > lookup_start_object,
DirectHandle< Object > key,
DirectHandle< JSAny > receiver = {},
bool * is_found = nullptr )
static

Definition at line 25 of file runtime-object.cc.

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

◆ GetPrivateMember()

MaybeDirectHandle< Object > v8::internal::Runtime::GetPrivateMember ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
DirectHandle< String > desc )
static

Definition at line 1472 of file runtime-object.cc.

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

◆ HasProperty()

MaybeDirectHandle< Object > v8::internal::Runtime::HasProperty ( Isolate * isolate,
DirectHandle< Object > object,
DirectHandle< Object > key )
static

Definition at line 54 of file runtime-object.cc.

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

◆ IsEnabledForFuzzing()

bool v8::internal::Runtime::IsEnabledForFuzzing ( FunctionId id)
static

Definition at line 197 of file runtime.cc.

Here is the caller graph for this function:

◆ IsNonReturning()

bool v8::internal::Runtime::IsNonReturning ( FunctionId id)
static

Definition at line 146 of file runtime.cc.

◆ MayAllocate()

bool v8::internal::Runtime::MayAllocate ( FunctionId id)
static

Definition at line 186 of file runtime.cc.

Here is the caller graph for this function:

◆ NeedsExactContext()

bool v8::internal::Runtime::NeedsExactContext ( FunctionId id)
static

Definition at line 93 of file runtime.cc.

Here is the caller graph for this function:

◆ RuntimeFunctionTable()

const Runtime::Function * v8::internal::Runtime::RuntimeFunctionTable ( Isolate * isolate)
static

Definition at line 354 of file runtime.cc.

Here is the call graph for this function:

◆ SetObjectProperty() [1/2]

MaybeDirectHandle< Object > v8::internal::Runtime::SetObjectProperty ( Isolate * isolate,
DirectHandle< JSAny > object,
DirectHandle< Object > key,
DirectHandle< Object > value,
MaybeDirectHandle< JSAny > receiver,
StoreOrigin store_origin,
Maybe< ShouldThrow > should_throw = Nothing<ShouldThrow>() )
static

Definition at line 369 of file runtime-object.cc.

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

◆ SetObjectProperty() [2/2]

MaybeDirectHandle< Object > v8::internal::Runtime::SetObjectProperty ( Isolate * isolate,
DirectHandle< JSAny > object,
DirectHandle< Object > key,
DirectHandle< Object > value,
StoreOrigin store_origin,
Maybe< ShouldThrow > should_throw = Nothing<ShouldThrow>() )
static

Definition at line 413 of file runtime-object.cc.

Here is the call graph for this function:

◆ SetPrivateMember()

MaybeDirectHandle< Object > v8::internal::Runtime::SetPrivateMember ( Isolate * isolate,
DirectHandle< JSReceiver > receiver,
DirectHandle< String > desc,
DirectHandle< Object > value )
static

Definition at line 1502 of file runtime-object.cc.

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

◆ ThrowIteratorError()

static V8_WARN_UNUSED_RESULT MaybeDirectHandle< Object > v8::internal::Runtime::ThrowIteratorError ( Isolate * isolate,
DirectHandle< Object > object )
static

Member Data Documentation

◆ kNotFound

const int v8::internal::Runtime::kNotFound = -1
static

Definition at line 934 of file runtime.h.

◆ kNumInlineFunctions

int v8::internal::Runtime::kNumInlineFunctions
staticconstexpr
Initial value:
=
#define COUNT(...)
#define COUNT(...)
#define FOR_EACH_INLINE_INTRINSIC(I)
Definition runtime.h:887

Definition at line 909 of file runtime.h.


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