v8 11.3.244 (node 20.3.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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 459 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ OverloadResolution

enum class OverloadResolution
strong
Enumerator
kImpossible 
kAtRuntime 
kAtCompileTime 

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

Constructor & Destructor Documentation

◆ CFunction() [1/2]

constexpr CFunction ( )
inlineconstexpr

Definition at line 461 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 469 of file v8-fast-api-calls.h.

Referenced by CFunction::GetOverloadResolution().

◆ ArgumentInfo()

const CTypeInfo & ArgumentInfo ( unsigned int  index) const
inline

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

Referenced by CFunction::GetOverloadResolution().

◆ GetAddress()

const void * GetAddress ( ) const
inline

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

◆ GetOverloadResolution()

OverloadResolution GetOverloadResolution ( const CFunction other)
inline

◆ GetTypeInfo()

const CFunctionInfo * GetTypeInfo ( ) const
inline

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

◆ Make() [1/2]

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

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

◆ Make() [2/2]

template<typename R , typename... Args, typename R_Patch , typename... Args_Patch>
static CFunction Make ( R(*)(Args...)  func,
R_Patch(*)(Args_Patch...)  patching_func 
)
inlinestatic

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

◆ ReturnInfo()

const CTypeInfo & ReturnInfo ( ) const
inline

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


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