v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
CFunction Class Reference

#include <v8-fast-api-calls.h>

Public Types

enum class  OverloadResolution { kImpossible , kAtRuntime , kAtCompileTime }
 

Public Member Functions

constexpr CFunction ()
 
const CTypeInfoReturnInfo () const
 
const CTypeInfoArgumentInfo (unsigned int index) const
 
unsigned int ArgumentCount () const
 
const void * GetAddress () const
 
const CFunctionInfoGetTypeInfo () const
 
OverloadResolution GetOverloadResolution (const CFunction *other)
 
 CFunction (const void *address, const CFunctionInfo *type_info)
 

Static Public Member Functions

template<typename F >
static CFunction Make (F *func)
 
template<typename F >
static CFunction MakeWithFallbackSupport (F *func)
 

Detailed Description

Definition at line 386 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ OverloadResolution

enum OverloadResolution
strong
Enumerator
kImpossible 
kAtRuntime 
kAtCompileTime 

Definition at line 401 of file v8-fast-api-calls.h.

Constructor & Destructor Documentation

◆ CFunction() [1/2]

constexpr CFunction ( )
inlineconstexpr

Definition at line 388 of file v8-fast-api-calls.h.

◆ CFunction() [2/2]

CFunction ( const void *  address,
const CFunctionInfo type_info 
)

Member Function Documentation

◆ ArgumentCount()

unsigned int ArgumentCount ( ) const
inline

Definition at line 396 of file v8-fast-api-calls.h.

References CFunctionInfo::ArgumentCount().

Referenced by CFunction::GetOverloadResolution().

◆ ArgumentInfo()

const CTypeInfo& ArgumentInfo ( unsigned int  index) const
inline

Definition at line 392 of file v8-fast-api-calls.h.

References CFunctionInfo::ArgumentInfo().

Referenced by CFunction::GetOverloadResolution().

◆ GetAddress()

const void* GetAddress ( ) const
inline

Definition at line 398 of file v8-fast-api-calls.h.

◆ GetOverloadResolution()

◆ GetTypeInfo()

const CFunctionInfo* GetTypeInfo ( ) const
inline

Definition at line 399 of file v8-fast-api-calls.h.

◆ Make()

static CFunction Make ( F *  func)
inlinestatic

Definition at line 438 of file v8-fast-api-calls.h.

◆ MakeWithFallbackSupport()

static CFunction MakeWithFallbackSupport ( F *  func)
inlinestatic

Definition at line 444 of file v8-fast-api-calls.h.

◆ ReturnInfo()

const CTypeInfo& ReturnInfo ( ) const
inline

Definition at line 390 of file v8-fast-api-calls.h.

References CFunctionInfo::ReturnInfo().


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