Files
hakorune/docs/development/current
nyash-codex 93f30c7c87 feat(using): Phase 173-2 investigation complete - root cause identified
🔍 Investigation Results:
- MIR builder correctly detects static box calls (trace confirmed)
- Root cause: Callee::Method has receiver=Some(undefined ValueId)
- VM has existing static box singleton path but unreachable

📊 Key Discovery (VM call dispatch analysis):
- method.rs:16 - reg_load(receiver) fails for undefined ValueId
- method.rs:138-146 - static box singleton path exists but requires receiver=None
- Problem: MIR builder sets receiver=Some(...) even for static calls

📁 Files Added:
- phase173-2_implementation_complete.md - Comprehensive investigation report
- phase173-2_investigation_findings.md - Root cause analysis
- phase173-2_completion_summary.md - Summary document

📁 Files Modified:
- parser_box.hako - Added is_using_alias() helper
- parser_expr_box.hako - Added static box call detection
- CURRENT_TASK.md - Updated Phase 173 progress

🎯 Next Step (Phase 173-B):
Fix unified_emitter.rs to set receiver=None for static box calls
This will allow VM to reach existing static singleton path

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 18:20:07 +09:00
..