Skip to main content

Module program

Module program 

Source
Expand description

PVM program input: raw bytecode + bitmask + jump table.

javm-exec consumes pre-decoded program fields. The JAR blob container (cap manifest + data section + code sub-blob) lives upstream — at the cap layer or integration crate. By the time the program reaches the execution engine, the caller has already extracted the executable parts.

This module is a thin container plus a few helpers. The interpreter and recompiler both consume &PvmProgram.

Structs§

PvmProgram
PVM program for execution.

Functions§

compute_mem_cycles
L/S memory cycle latency tier as a function of accessible page count (cherry-picked from v2 javm/src/lib.rs::compute_mem_cycles):
unpack_bitmask
Unpack a packed bitmask (1 bit per byte) into the unpacked form (one byte per code position; 0 or 1). The packed form is the serialized representation; the unpacked form is what PvmProgram::bitmask carries.