shape-jit 0.3.0

Tiered JIT compiler (Cranelift) for the Shape virtual machine
Documentation

JIT Compiler Module for Shape

Compiles Shape bytecode to native x86-64/ARM machine code using Cranelift for high-performance strategy execution in backtesting.

Module Structure

  • ffi::jit_kinds - JIT-specific heap kinds and allocation types
  • ffi::value_ffi - NaN-boxing value encoding/decoding helpers
  • context - JITContext, JITDataFrame, and related structures
  • ffi - FFI functions called from JIT-compiled code
  • loop_analysis - Loop analysis for JIT optimization
  • osr_compiler - OSR (On-Stack Replacement) loop compilation
  • ffi_refs - FFI function references for heap operations
  • compiler - JITCompiler implementation (split into logical modules)
  • core - Legacy re-exports and tests