|
|
51ff558904
|
feat(phase32): L-2.1 Stage-1 UsingResolver JoinIR integration + cleanup
Phase 32 L-2.1 complete implementation:
1. Stage-1 UsingResolver main line JoinIR connection
- CFG-based LoopForm construction for resolve_for_source/5
- LoopToJoinLowerer integration with handwritten fallback
- JSON snapshot tests 6/6 PASS
2. JoinIR/VM Bridge improvements
- Simplified join_ir_vm_bridge.rs dispatch logic
- Enhanced json.rs serialization
- PHI core boxes cleanup (local_scope_inspector, loop_exit_liveness, loop_var_classifier)
3. Stage-1 CLI enhancements
- Extended args.rs, groups.rs, mod.rs for new options
- Improved stage1_bridge module (args, env, mod)
- Updated stage1_cli.hako
4. MIR builder cleanup
- Simplified if_form.rs control flow
- Removed dead code from loop_builder.rs
- Enhanced phi_merge.rs
5. Runner module updates
- json_v0_bridge/lowering.rs improvements
- dispatch.rs, selfhost.rs, modes/vm.rs cleanup
6. Documentation updates
- CURRENT_TASK.md, AGENTS.md
- Various docs/ updates
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-26 10:17:37 +09:00 |
|
|
|
98dadf446f
|
feat(joinir): S-5.2-improved - VM完全意味論統合完了
Phase 27-shortterm S-5.2-improved 実装完了:
## 実装内容
1. **execute_box_call() ラッパー追加**:
- src/backend/mir_interpreter/mod.rs に公開 API 実装
- 1_000_000 番台レジスタで一時値管理
- 適切なクリーンアップ処理実装
2. **handle_box_call 可視性変更**:
- src/backend/mir_interpreter/handlers/boxes.rs を pub に変更
- JoinIR Runner からアクセス可能に
3. **JoinIR Runner BoxCall 統合**:
- src/mir/join_ir_runner.rs の BoxCall 処理を書き換え
- StringBox 直接呼び出し削除
- VM の execute_box_call 経由に変更
- JoinValue ↔ VMValue 変換で統合
4. **不要な関数削除**:
- expect_str(), expect_int(), box_to_join_value() 削除
- VMValue 変換に一本化
5. **テスト更新**:
- joinir_runner_standalone.rs: VM インスタンス追加
- joinir_runner_min.rs: VM 再利用
## 期待される効果
✅ Void guards 完全対応 (Void.length() → 0)
✅ PluginBox/InstanceBox 将来対応可能
✅ VM の完全な BoxCall 意味論統一
✅ VM 2号機回避(ガードレール設計成功)
## テスト結果
✅ joinir_runner_standalone_skip_ws ... ok
✅ joinir_runner_standalone_trim ... ok
✅ ビルド成功(0エラー)
## 完了タスク
- [x] MirInterpreter::execute_box_call() 実装
- [x] 1_000_000 レジスタ帯域割り当て
- [x] regs クリーンアップ実装
- [x] JoinIR Runner BoxCall 書き換え
- [x] テスト更新&PASS確認
🎉 VM 完全意味論統合完了!
|
2025-11-24 08:37:59 +09:00 |
|