Commit f19bf737

f19bf7371dc1Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 8 months ago · 1 file · ~1 modified

Description

Update PLAN.md — NaN-boxing (Phase 7) complete, 10500 lines, 47 examples

Phase 7 marked done. sp_RbValue now 8 bytes (favor pointer, JSC-style). All phases 1a through 7 complete in the polymorphism roadmap.

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Details

Commit
f19bf7371dc1
Parent
aa1942ed1351

PLAN.mdmodifiedView file

@@ -10,7 +10,7 @@
1010
1111 ## 現状 (Status)
1212
13-### コンパイラアーキテクチャ (~9700行のC)
13+### コンパイラアーキテクチャ (~10500行のC)
1414
1515 - Prism (libprism) によるRubyパース
1616 - 多パスコード生成:
@@ -94,7 +94,7 @@
9494 | | シャドウスタックルート管理, ファイナライザ |
9595 | | GC不要なプログラムではGCコード省略 |
9696
97-### テストプログラム (40例)
97+### テストプログラム (47例)
9898
9999 | プログラム | テスト対象 |
100100 |-----------|-----------|
@@ -219,7 +219,7 @@
219219 };
220220 } sp_RbValue; // 16 bytes
221221
222-// Phase 2 (将来): NaN-boxing (8バイト、高速)
222+// NaN-boxing 完了: 8バイト、favor pointer (JSC方式)
223223 ```
224224
225225 ### 3段階メソッドディスパッチ
@@ -365,7 +365,7 @@
365365 | **5** | sp_String (ミュータブル文字列 + GC) | ✅ 完了 |
366366 | **5b** | sp_String Phase 2-4 (replace, clear, [], gsub等) | ✅ 完了 |
367367 | **6** | require_relative (複数ファイルコンパイル) | ✅ 完了 |
368-| **7** | NaN-boxing (8バイト化) | **次** |
368+| **7** | NaN-boxing (8バイト化, favor pointer) | ✅ 完了 |
369369
370370 ### 設計原則
371371
@@ -501,8 +501,8 @@
501501 ├── src/
502502 │ ├── main.c # CLI、ファイル読み込み、Prismパース
503503 │ ├── codegen.h # 型システム、クラス/メソッド/モジュール情報構造体
504-│ └── codegen.c # 多パスコード生成器 (~9700行)
505-├── examples/ # 40テストプログラム
504+│ └── codegen.c # 多パスコード生成器 (~10500行)
505+├── examples/ # 47テストプログラム
506506 ├── prototype/
507507 │ └── tools/ # Step 0プロトタイプ (RBS抽出、LumiTrace等)
508508 ├── Makefile