pyvm: split op handlers into ops_core/ops_box/ops_ctrl; add ops_flow + intrinsic; delegate vm.py without behavior change
net-plugin: modularize constants (consts.rs) and sockets (sockets.rs); remove legacy commented socket code; fix unused imports mir: move instruction unit tests to tests/mir_instruction_unit.rs (file lean-up); no semantic changes runner/pyvm: ensure using pre-strip; misc docs updates Build: cargo build ok; legacy cfg warnings remain as before
This commit is contained in:
@ -5,60 +5,16 @@
|
||||
// VM core types are always available
|
||||
pub mod vm_types;
|
||||
|
||||
// Legacy VM execution pipeline (feature-gated) — loaded from archive path
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm.rs"]
|
||||
pub mod vm;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_boxcall.rs"]
|
||||
pub mod vm_boxcall;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_instructions/mod.rs"]
|
||||
pub mod vm_instructions;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_phi.rs"]
|
||||
pub mod vm_phi;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_stats.rs"]
|
||||
pub mod vm_stats;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_values.rs"]
|
||||
pub mod vm_values;
|
||||
// Legacy VM execution pipeline removed from archive
|
||||
|
||||
// When vm-legacy is disabled, provide a compatibility shim module so
|
||||
// crate::backend::vm::VMValue etc. keep resolving to vm_types::*.
|
||||
#[cfg(not(feature = "vm-legacy"))]
|
||||
// Compatibility shim module - always provide vm module with core types
|
||||
pub mod vm {
|
||||
pub use super::vm_types::{VMError, VMValue};
|
||||
}
|
||||
// Phase 9.78h: VM split scaffolding (control_flow/dispatch/frame)
|
||||
// Core backend modules
|
||||
pub mod abi_util; // Shared ABI/utility helpers
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/control_flow.rs"]
|
||||
pub mod control_flow;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/dispatch.rs"]
|
||||
pub mod dispatch;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/frame.rs"]
|
||||
pub mod frame;
|
||||
pub mod gc_helpers;
|
||||
pub mod mir_interpreter;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_control_flow.rs"]
|
||||
pub mod vm_control_flow;
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_exec.rs"]
|
||||
mod vm_exec; // A3: execution loop extracted
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_gc.rs"]
|
||||
mod vm_gc; // A3: GC roots & diagnostics extracted
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_methods.rs"]
|
||||
mod vm_methods; // A3-S1: method dispatch wrappers extracted
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
#[path = "../archive/vm_legacy/vm_state.rs"]
|
||||
mod vm_state; // A3: state & basic helpers extracted // Lightweight MIR interpreter
|
||||
pub mod mir_interpreter; // Lightweight MIR interpreter
|
||||
|
||||
#[cfg(feature = "wasm-backend")]
|
||||
pub mod aot;
|
||||
@ -76,10 +32,8 @@ pub mod cranelift;
|
||||
pub mod llvm;
|
||||
|
||||
pub use mir_interpreter::MirInterpreter;
|
||||
// Always re-export VMError/VMValue from vm_types; VM (executor) only when enabled
|
||||
// Always re-export VMError/VMValue from vm_types
|
||||
pub use vm_types::{VMError, VMValue};
|
||||
#[cfg(feature = "vm-legacy")]
|
||||
pub use vm::VM;
|
||||
|
||||
#[cfg(feature = "wasm-backend")]
|
||||
pub use aot::{AotBackend, AotConfig, AotError, AotStats};
|
||||
|
||||
Reference in New Issue
Block a user