v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
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 419 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ OverloadResolution

enum class OverloadResolution
strong
Enumerator
kImpossible 
kAtRuntime 
kAtCompileTime 

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

Constructor & Destructor Documentation

◆ CFunction() [1/2]

CFunction ( )
inlineconstexpr

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

Referenced by Make(), and Make().

◆ CFunction() [2/2]

CFunction ( const void * address,
const CFunctionInfo * type_info )

Member Function Documentation

◆ ArgumentCount()

unsigned int ArgumentCount ( ) const
inline

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

◆ ArgumentInfo()

const CTypeInfo & ArgumentInfo ( unsigned int index) const
inline

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

◆ GetAddress()

const void * GetAddress ( ) const
inline

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

◆ GetInt64Representation()

CFunctionInfo::Int64Representation GetInt64Representation ( ) const
inline

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

Referenced by Make().

◆ GetTypeInfo()

const CFunctionInfo * GetTypeInfo ( ) const
inline

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

References CFunction(), GetInt64Representation(), and CFunctionInfo::kNumber.

Referenced by Make().

◆ Make() [2/2]

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 )
inlinestatic

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

References CFunction(), CFunctionInfo::kNumber, and Make().

◆ ReturnInfo()

const CTypeInfo & ReturnInfo ( ) const
inline

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


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