Files
hakorune/docs/private/roadmap/phases/phase-20.33/CHECKLIST.md

28 lines
2.5 KiB
Markdown
Raw Normal View History

# CHECKLIST — Phase 20.33 (StageB)
- [x] StageB 専用エントリ(`lang/src/compiler/entry/compiler_stageb.hako`)を追加。`--prefer-cfg` を受理。
- [x] `ParserBox.parse_program2` → AST JSON を取得Quiet: 1行。StageA map parser は空/空白/エスケープに対応。
- [x] FlowEntry.emit_v0_from_ast_with_contextusing/extern メタを統合)。
- [x] selfhost canaryreturn/binop/if/indexを StageB でも PASSoptin `SMOKES_ENABLE_STAGEB=1` で緑)。
- [x] v1→v0 降格MirJsonV1Adapter経路を整備`--v1-compat` / `selfhost_stageb_v1_compat_vm` opt-in
- [x] tools/smokes/v2/profiles/quick/core/selfhost_* を追加optin。配列ネスト/境界ケースを含む。
- [x] ドキュメント更新README/PLAN/CHECKLIST
-— 未完(本フェーズ内で進める) —
- [x] GateC(Core) v1→MIR Interpreter 実行(`HAKO_NYVM_CORE=1`/最小ブリッジ)。
- [ ] NyVmDispatcher 直行(別タスク・将来対応)。
- [ ] v1→v0 最小ダウングレード(任意・`HAKO_NYVM_V1_DOWNCONVERT=1`)。未対応命令は FailFast。
- [x] Bridge 正規化: `HAKO_BRIDGE_INJECT_SINGLETON` 実装Array/Map len → Method 化、FailFast 付き)。
- [x] Bridge 正規化: `HAKO_BRIDGE_EARLY_PHI_MATERIALIZE` 実装(φ をブロック先頭へ移動、順序保護)。
- [ ] 静的Boxメソッドの self 先頭統一LLVM 命令Boxを含む。互換が必要な経路は `HAKO_BRIDGE_INJECT_SINGLETON=1` で補完。
- [x] GateC file/pipe × Plugins ON/OFF の対称性スモーク(数値出力=終了コード)。
- [ ] StageA map リテラルの堅牢化(エスケープ/Unicode/{}/不正形診断)。
- [x] スモーク実行権限core/* に chmod +x 反映)。
- [ ] 参照の古い表記整理apps/selfhost-compiler → lang/src/compiler/* に統一。履歴注記は残す)。
- [ ] ランナー子環境ヘルパーの集約selfhost 経路の ENV を helper へ)。
- [ ] Extern SSOTVM/AOT 共通ローダ、既定OFF
▼ 付記(ワークログ)
- 20251101: Runner の GateC v1 直行(子プロセスで Hako controller 起動)を配線。ただし Hako 側で `call("…")` 解決に失敗→直行NG。v1→MIR Interpreter最小ブリッジ const/copy/retは動作。
- 20251101: Bridge トグルlen 変換/φ 先頭化実装。GateC v1 parity スモークfile/pipe、plugins ON/OFFと StageA map 境界スモークを追加optin