v8 14.1.146 (node 25.0.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
 
CFunctionInfo::Int64Representation GetInt64Representation () const
 
const CFunctionInfoGetTypeInfo () const
 
 CFunction (const void *address, const CFunctionInfo *type_info)
 

Static Public Member Functions

template<typename F >
static CFunction Make (F *func, CFunctionInfo::Int64Representation int64_rep=CFunctionInfo::Int64Representation::kNumber)
 
template<typename R , typename... Args, typename R_Patch , typename... Args_Patch>
static CFunction Make (R(*func)(Args...), R_Patch(*patching_func)(Args_Patch...), CFunctionInfo::Int64Representation int64_rep=CFunctionInfo::Int64Representation::kNumber)
 

Detailed Description

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

Member Enumeration Documentation

◆ OverloadResolution

enum class 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 385 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 393 of file v8-fast-api-calls.h.

References CFunctionInfo::ArgumentCount().

◆ ArgumentInfo()

const CTypeInfo & ArgumentInfo ( unsigned int  index) const
inline

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

References CFunctionInfo::ArgumentInfo().

◆ GetAddress()

const void * GetAddress ( ) const
inline

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

◆ GetInt64Representation()

CFunctionInfo::Int64Representation GetInt64Representation ( ) const
inline

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

References CFunctionInfo::GetInt64Representation().

Referenced by CFunction::Make().

◆ GetTypeInfo()

const CFunctionInfo * GetTypeInfo ( ) const
inline

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

◆ Make() [1/2]

template<typename F >
static CFunction Make ( F *  func,
CFunctionInfo::Int64Representation  int64_rep = CFunctionInfo::Int64Representation::kNumber 
)
inlinestatic

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

References CFunction::GetInt64Representation().

◆ 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,
CFunctionInfo::Int64Representation  int64_rep = CFunctionInfo::Int64Representation::kNumber 
)
inlinestatic

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

◆ ReturnInfo()

const CTypeInfo & ReturnInfo ( ) const
inline

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

References CFunctionInfo::ReturnInfo().


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