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

#include <api-natives.h>

Collaboration diagram for v8::internal::ApiNatives:

Static Public Member Functions

static DirectHandle< FunctionTemplateInfoCreateAccessorFunctionTemplateInfo (Isolate *isolate, FunctionCallback callback, int length, v8::SideEffectType side_effect_type)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSFunctionInstantiateFunction (Isolate *isolate, DirectHandle< NativeContext > native_context, DirectHandle< FunctionTemplateInfo > data, MaybeDirectHandle< Name > maybe_name={})
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSFunctionInstantiateFunction (Isolate *isolate, DirectHandle< FunctionTemplateInfo > data, MaybeDirectHandle< Name > maybe_name={})
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSObjectInstantiateObject (Isolate *isolate, DirectHandle< ObjectTemplateInfo > data, DirectHandle< JSReceiver > new_target={})
 
static V8_WARN_UNUSED_RESULT MaybeHandle< JSObjectInstantiateRemoteObject (DirectHandle< ObjectTemplateInfo > data)
 
static Handle< JSFunctionCreateApiFunction (Isolate *isolate, DirectHandle< NativeContext > native_context, DirectHandle< FunctionTemplateInfo > obj, DirectHandle< Object > prototype, InstanceType type, MaybeDirectHandle< Name > name={})
 
static void AddDataProperty (Isolate *isolate, DirectHandle< TemplateInfoWithProperties > info, DirectHandle< Name > name, DirectHandle< Object > value, PropertyAttributes attributes)
 
static void AddDataProperty (Isolate *isolate, DirectHandle< TemplateInfoWithProperties > info, DirectHandle< Name > name, v8::Intrinsic intrinsic, PropertyAttributes attributes)
 
static void AddAccessorProperty (Isolate *isolate, DirectHandle< TemplateInfoWithProperties > info, DirectHandle< Name > name, DirectHandle< FunctionTemplateInfo > getter, DirectHandle< FunctionTemplateInfo > setter, PropertyAttributes attributes)
 
static void AddNativeDataProperty (Isolate *isolate, DirectHandle< TemplateInfoWithProperties > info, DirectHandle< AccessorInfo > property)
 

Static Public Attributes

static const int kInitialFunctionCacheSize = 256
 

Detailed Description

Definition at line 22 of file api-natives.h.

Member Function Documentation

◆ AddAccessorProperty()

void v8::internal::ApiNatives::AddAccessorProperty ( Isolate * isolate,
DirectHandle< TemplateInfoWithProperties > info,
DirectHandle< Name > name,
DirectHandle< FunctionTemplateInfo > getter,
DirectHandle< FunctionTemplateInfo > setter,
PropertyAttributes attributes )
static

Definition at line 569 of file api-natives.cc.

Here is the call graph for this function:

◆ AddDataProperty() [1/2]

void v8::internal::ApiNatives::AddDataProperty ( Isolate * isolate,
DirectHandle< TemplateInfoWithProperties > info,
DirectHandle< Name > name,
DirectHandle< Object > value,
PropertyAttributes attributes )
static

Definition at line 543 of file api-natives.cc.

Here is the call graph for this function:

◆ AddDataProperty() [2/2]

void v8::internal::ApiNatives::AddDataProperty ( Isolate * isolate,
DirectHandle< TemplateInfoWithProperties > info,
DirectHandle< Name > name,
v8::Intrinsic intrinsic,
PropertyAttributes attributes )
static

Definition at line 555 of file api-natives.cc.

Here is the call graph for this function:

◆ AddNativeDataProperty()

void v8::internal::ApiNatives::AddNativeDataProperty ( Isolate * isolate,
DirectHandle< TemplateInfoWithProperties > info,
DirectHandle< AccessorInfo > property )
static

Definition at line 582 of file api-natives.cc.

Here is the call graph for this function:

◆ CreateAccessorFunctionTemplateInfo()

DirectHandle< FunctionTemplateInfo > v8::internal::ApiNatives::CreateAccessorFunctionTemplateInfo ( Isolate * isolate,
FunctionCallback callback,
int length,
v8::SideEffectType side_effect_type )
static

Definition at line 484 of file api-natives.cc.

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

◆ CreateApiFunction()

Handle< JSFunction > v8::internal::ApiNatives::CreateApiFunction ( Isolate * isolate,
DirectHandle< NativeContext > native_context,
DirectHandle< FunctionTemplateInfo > obj,
DirectHandle< Object > prototype,
InstanceType type,
MaybeDirectHandle< Name > name = {} )
static

Definition at line 596 of file api-natives.cc.

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

◆ InstantiateFunction() [1/2]

MaybeHandle< JSFunction > v8::internal::ApiNatives::InstantiateFunction ( Isolate * isolate,
DirectHandle< FunctionTemplateInfo > data,
MaybeDirectHandle< Name > maybe_name = {} )
static

Definition at line 504 of file api-natives.cc.

◆ InstantiateFunction() [2/2]

MaybeHandle< JSFunction > v8::internal::ApiNatives::InstantiateFunction ( Isolate * isolate,
DirectHandle< NativeContext > native_context,
DirectHandle< FunctionTemplateInfo > data,
MaybeDirectHandle< Name > maybe_name = {} )
static

Definition at line 495 of file api-natives.cc.

Here is the caller graph for this function:

◆ InstantiateObject()

MaybeHandle< JSObject > v8::internal::ApiNatives::InstantiateObject ( Isolate * isolate,
DirectHandle< ObjectTemplateInfo > data,
DirectHandle< JSReceiver > new_target = {} )
static

Definition at line 511 of file api-natives.cc.

Here is the caller graph for this function:

◆ InstantiateRemoteObject()

MaybeHandle< JSObject > v8::internal::ApiNatives::InstantiateRemoteObject ( DirectHandle< ObjectTemplateInfo > data)
static

Definition at line 518 of file api-natives.cc.

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

Member Data Documentation

◆ kInitialFunctionCacheSize

const int v8::internal::ApiNatives::kInitialFunctionCacheSize = 256
static

Definition at line 24 of file api-natives.h.


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