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,5 +1,10 @@
/*!
* VM Instruction Handlers - Extracted from execute_instruction for better modularity
* VM Instruction Handlers
*
* Purpose: Implementation of each MIR instruction handler (invoked by vm.rs)
* Responsibilities: load/store/branch/phi/call/array/ref/await/extern_call
* Key APIs: execute_const/execute_binop/execute_unaryop/execute_compare/...
* Typical Callers: VM::execute_instruction (dispatch point)
*/
use crate::mir::{ConstValue, BinaryOp, CompareOp, UnaryOp, ValueId, BasicBlockId, TypeOpKind, MirType};