Docs: VM BoxCall vtable/PIC overview\n- VM_README: method_id slots, universal thunks, mono-PIC直呼び\n- Phase notes: progress includes direct-call and next steps

This commit is contained in:
Moe Charm
2025-08-26 22:37:15 +09:00
parent d46176de49
commit 90b9ab3a16
2 changed files with 27 additions and 1 deletions

View File

@ -36,10 +36,11 @@ Progress: Fast-path thunks (universal slots) + PIC skeleton committed
- `MirInstruction::BoxCall` now carries optional `method_id` emitted by the builder when resolvable.
- Added monomorphic PIC skeleton: per-(receiver type, method_id/name) hit counters in the VM.
- Minimal tests: verify fast-path behavior for `type()` and `equals()`.
- PIC direct-call (InstanceBox): after threshold (8 hits), call `{Class}.{method}/{arity}` directly via cache.
Next:
- Threshold-based direct dispatch using per-site cache entries.
- Extend beyond universal slots to general `method_id`-resolved methods.
- Extend beyond universal slots to general `method_id`-resolved methods (builtin/plugin + user) via vtable thunks.
## Non-Goals
- Polymorphic PIC (plan only)