Reduct  v4.1.3-1-gd06c383
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_function_t Struct Reference

Compiled function structure. More...

#include <function.h>

Collaboration diagram for reduct_function_t:

Data Fields

uint32_t instCount
 Number of instructions.
 
uint32_t instCapacity
 Capacity of the instruction array.
 
reduct_inst_tinsts
 An array of instructions.
 
reduct_function_inst_source_tsources
 An array specifying the source of instructions.
 
reduct_handle_tconstants
 Static constant values. Slot i is captureCount + i.
 
uint16_t constantCount
 Number of static constants.
 
uint16_t constantCapacity
 Capacity of the constants array.
 
uint16_t captureCount
 Number of captured-variable slots.
 
uint16_t registerCount
 The number of registers the function uses.
 
uint8_t arity
 The number of arguments the function expects.
 
reduct_function_flags_t flags
 The function flags.
 

Detailed Description

Compiled function structure.

Definition at line 64 of file function.h.

Field Documentation

◆ instCount

uint32_t reduct_function_t::instCount

Number of instructions.

Definition at line 66 of file function.h.

◆ instCapacity

uint32_t reduct_function_t::instCapacity

Capacity of the instruction array.

Definition at line 67 of file function.h.

◆ insts

reduct_inst_t* reduct_function_t::insts

An array of instructions.

Definition at line 68 of file function.h.

◆ sources

reduct_function_inst_source_t* reduct_function_t::sources

An array specifying the source of instructions.

Definition at line 69 of file function.h.

◆ constants

reduct_handle_t* reduct_function_t::constants

Static constant values. Slot i is captureCount + i.

Definition at line 70 of file function.h.

◆ constantCount

uint16_t reduct_function_t::constantCount

Number of static constants.

Definition at line 71 of file function.h.

◆ constantCapacity

uint16_t reduct_function_t::constantCapacity

Capacity of the constants array.

Definition at line 72 of file function.h.

◆ captureCount

uint16_t reduct_function_t::captureCount

Number of captured-variable slots.

Definition at line 73 of file function.h.

◆ registerCount

uint16_t reduct_function_t::registerCount

The number of registers the function uses.

Definition at line 74 of file function.h.

◆ arity

uint8_t reduct_function_t::arity

The number of arguments the function expects.

Definition at line 75 of file function.h.

◆ flags

reduct_function_flags_t reduct_function_t::flags

The function flags.

Definition at line 76 of file function.h.


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