Skip to main content

Module constants

Module constants 

Source
Expand description

VM constants and configuration values

Constantsยง

DEFAULT_CALL_STACK_CAPACITY
Initial capacity for the call stack Vec
DEFAULT_GC_TRIGGER_THRESHOLD
Default GC trigger threshold (instructions between collections)
DEFAULT_STACK_CAPACITY
Default stack capacity for VM execution
EXACT_F64_INT_LIMIT
Maximum integer magnitude that can be losslessly represented as an f64. 2^53 = 9_007_199_254_740_992. Used by both arithmetic and comparison modules to reject mixed int/float operations that would lose precision.
MAX_CALL_STACK_DEPTH
Maximum call stack depth
MAX_STACK_SIZE
Maximum stack size (safety limit)