v8 12.4.254 (node 22.4.1)
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
 
CFunctionInfo::Int64Representation GetInt64Representation () 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 477 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ OverloadResolution

enum class OverloadResolution
strong
Enumerator
kImpossible 
kAtRuntime 
kAtCompileTime 

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

Constructor & Destructor Documentation

◆ CFunction() [1/2]

constexpr CFunction ( )
inlineconstexpr

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

Referenced by CFunction::GetOverloadResolution().

◆ ArgumentInfo()

const CTypeInfo & ArgumentInfo ( unsigned int  index) const
inline

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

Referenced by CFunction::GetOverloadResolution().

◆ GetAddress()

const void * GetAddress ( ) const
inline

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

◆ GetInt64Representation()

CFunctionInfo::Int64Representation GetInt64Representation ( ) const
inline

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

◆ GetOverloadResolution()

OverloadResolution GetOverloadResolution ( const CFunction other)
inline

◆ GetTypeInfo()

const CFunctionInfo * GetTypeInfo ( ) const
inline

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

◆ Make() [1/2]

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

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

◆ ReturnInfo()

const CTypeInfo & ReturnInfo ( ) const
inline

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


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