Compiled code data associated with a CODE cap.
Constructor
Jar.JAVM.Kernel.CodeCapData.mk
Fields
id : Nat
program : Jar.JAVM.ProgramBlob
jumpTable : Array Nat
Jar.JAVM.Kernel.CodeCapData : TypeJar.JAVM.Kernel.CodeCapData : Type
Compiled code data associated with a CODE cap.
Jar.JAVM.Kernel.CodeCapData.mk
id : Nat
program : Jar.JAVM.ProgramBlob
jumpTable : Array Nat
Jar.JAVM.Kernel.BackingStore : TypeJar.JAVM.Kernel.BackingStore : Type
Backing store: flat byte array representing all physical pages.
Jar.JAVM.Kernel.BackingStore.mk
data : ByteArray
totalPages : Nat
Jar.JAVM.Kernel.KernelState : TypeJar.JAVM.Kernel.KernelState : Type
Kernel state: VM pool + call stack + backing store + memory.
Jar.JAVM.Kernel.KernelState.mk
vms : Array Jar.JAVM.Cap.VmInstance
callStack : Array Jar.JAVM.Cap.CallFrame
codeCaps : Array CodeCapData
activeVm : Nat
untyped : Jar.JAVM.Cap.UntypedCap
backing : BackingStore
memory : Jar.JAVM.Memory
Flat PVM memory shared by all VMs (simplified model).
pvmRun : PvmRunFn
PVM execution function (gas model dependent).
memCycles : Nat
The kernel maintains a pool of VM instances, a call stack for CALL/REPLY routing, compiled CODE caps, a shared backing store for physical pages, and the UNTYPED bump allocator.
Deduct gas from active VM. Returns none if insufficient.
Get remaining gas from the active VM.