Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::Function Struct Reference

Metadata and executable code or native binding of a function loaded from a CBO. More...

#include <bond/vm/codesegment.h>

Classes

union  [union].__unnamed0__

Public Member Functions

bool IsNative () const
 Returns whether this function is native, i.e. implemented in C++ rather than Bond bytecode.

Public Attributes

QualifiedName mName
 The fully qualified name of the function.
ReturnSignature mReturnSignature
 The signature of the return value.
ParamListSignature mParamListSignature
 The signature of the parameter list.
const ConstantTable * mConstantTable
 The constant tables of the CBO in which the function is defined.
union  
uint32_t mCodeSize
 The size of the bytecode in bytes, which is 0 for a native function.
uint32_t mArgSize
 The size in bytes of the arguments laid out in the function's frame.
uint32_t mPackedArgSize
 The size in bytes of the arguments packed into consecutive slots by the caller.
uint32_t mLocalSize
 The size in bytes of the function's local variables.
uint32_t mStackSize
 The maximum size in bytes of the function's operand stack.
uint32_t mFramePointerAlignment
 The alignment in bytes of the function's frame pointer.

Detailed Description

Metadata and executable code or native binding of a function loaded from a CBO.

Member Function Documentation

◆ IsNative()

bool Bond::Function::IsNative ( ) const
inline

Returns whether this function is native, i.e. implemented in C++ rather than Bond bytecode.

Returns
true if the function is native, otherwise false.

Member Data Documentation

◆ @346312305161212135174160115016256205221376263370

◆ mArgSize

uint32_t Bond::Function::mArgSize

The size in bytes of the arguments laid out in the function's frame.

◆ mCodeSize

uint32_t Bond::Function::mCodeSize

The size of the bytecode in bytes, which is 0 for a native function.

◆ mConstantTable

const ConstantTable* Bond::Function::mConstantTable

The constant tables of the CBO in which the function is defined.

◆ mFramePointerAlignment

uint32_t Bond::Function::mFramePointerAlignment

The alignment in bytes of the function's frame pointer.

◆ mLocalSize

uint32_t Bond::Function::mLocalSize

The size in bytes of the function's local variables.

◆ mName

QualifiedName Bond::Function::mName

The fully qualified name of the function.

◆ mPackedArgSize

uint32_t Bond::Function::mPackedArgSize

The size in bytes of the arguments packed into consecutive slots by the caller.

◆ mParamListSignature

ParamListSignature Bond::Function::mParamListSignature

The signature of the parameter list.

◆ mReturnSignature

ReturnSignature Bond::Function::mReturnSignature

The signature of the return value.

◆ mStackSize

uint32_t Bond::Function::mStackSize

The maximum size in bytes of the function's operand stack.


The documentation for this struct was generated from the following file:
  • include/bond/vm/codesegment.h