v8  10.1.124 (node 18.2.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 R , typename... Args, typename R_Patch , typename... Args_Patch>
static CFunction Make (R(*func)(Args...), R_Patch(*patching_func)(Args_Patch...))
 

Detailed Description

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

Member Enumeration Documentation

◆ OverloadResolution

enum OverloadResolution
strong
Enumerator
kImpossible 
kAtRuntime 
kAtCompileTime 

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

Constructor & Destructor Documentation

◆ CFunction() [1/2]

constexpr CFunction ( )
inlineconstexpr

Definition at line 449 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 457 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 453 of file v8-fast-api-calls.h.

References CFunctionInfo::ArgumentInfo().

Referenced by CFunction::GetOverloadResolution().

◆ GetAddress()

const void* GetAddress ( ) const
inline

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

◆ GetOverloadResolution()

◆ GetTypeInfo()

const CFunctionInfo* GetTypeInfo ( ) const
inline

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

◆ Make() [1/2]

static CFunction Make ( F *  func)
inlinestatic

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

◆ Make() [2/2]

static CFunction Make ( R(*)(Args...)  func,
R_Patch(*)(Args_Patch...)  patching_func 
)
inlinestatic

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

◆ ReturnInfo()

const CTypeInfo& ReturnInfo ( ) const
inline

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

References CFunctionInfo::ReturnInfo().


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