Docs/CurrentTask: add explicit refactor goals/milestones/steps. VM modules: add Purpose/Responsibilities/Key APIs/Typical Callers headers. Build+goldens green.

This commit is contained in:
Moe Charm
2025-08-26 01:07:23 +09:00
parent edadf67ca0
commit 7ccd5420ac
6 changed files with 60 additions and 11 deletions

View File

@ -1,7 +1,10 @@
/*!
* VM Backend - Execute MIR instructions in a virtual machine
*
* Simple stack-based VM for executing MIR code
*
* Purpose: Core VM (execute loop, storage, control-flow, integration glue)
* Responsibilities: fetch/dispatch instructions, manage values/blocks, stats hooks
* Key APIs: VM::execute_module, execute_instruction, get_value/set_value
* Typical Callers: runner (VM backend), instruction handlers (vm_instructions)
*/
use crate::mir::{MirModule, MirFunction, MirInstruction, ConstValue, BinaryOp, CompareOp, UnaryOp, ValueId, BasicBlockId};