runner: split modes (mir/vm/llvm/bench) and extract plugin init; interpreter: split objects into ops/methods/fields; VM logs gated; Phi selection minimal fix; CURRENT_TASK updated; remove legacy backups

This commit is contained in:
Moe Charm
2025-08-26 04:34:14 +09:00
parent 11c149ac2b
commit 1e735d7717
69 changed files with 1023 additions and 992009 deletions

26
src/backend/dispatch.rs Normal file
View File

@ -0,0 +1,26 @@
/*!
* VM Dispatch table (scaffolding)
*
* Purpose: Centralize mapping from MIR instruction kinds to handler fns.
* Status: Initial skeleton; currently unused. Future: build static table for hot-path dispatch.
*/
use crate::mir::MirInstruction;
use super::vm::{VMError};
/// Placeholder for an instruction dispatch entry
pub struct DispatchEntry;
/// Placeholder dispatch table
pub struct DispatchTable;
impl DispatchTable {
pub fn new() -> Self { Self }
/// Example API for future use: resolve a handler for an instruction
pub fn resolve(&self, _instr: &MirInstruction) -> Option<DispatchEntry> { None }
}
/// Example execution of a dispatch entry
pub fn execute_entry(_entry: &DispatchEntry) -> Result<(), VMError> { Ok(()) }