vm/router: minimal special-method extension (equals/1); toString mapping kept

mir: add TypeCertainty to Callee::Method (diagnostic only); plumb through builder/JSON/printer; backends ignore behaviorally

using: confirm unified prelude resolver entry for all runner modes

docs: update Callee architecture with certainty; update call-instructions; CURRENT_TASK note

tests: quick 40/40 PASS; integration (LLVM) 17/17 PASS
This commit is contained in:
nyash-codex
2025-09-28 01:33:58 +09:00
parent 8ea95c9d76
commit 34be7d2d79
63 changed files with 5008 additions and 356 deletions

View File

@ -136,7 +136,8 @@ pub enum Callee {
Method {
box_name: String, // "StringBox", "ConsoleStd"
method: String, // "upper", "print"
receiver: Option<ValueId> // レシーバオブジェクトSomeの場合
receiver: Option<ValueId>, // レシーバオブジェクトSomeの場合
certainty: TypeCertainty, // 追加: Known/Union型確度
},
/// 関数値による動的呼び出し
@ -149,6 +150,16 @@ pub enum Callee {
}
```
補足: 型確度TypeCertainty
```rust
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TypeCertainty {
Known, // 受信クラスが一意に既知origin 伝播・静的文脈)
Union, // 分岐合流などで非一意VM などのルータに委譲)
}
```
### MIRビルダの変更
```rust
@ -296,4 +307,4 @@ ChatGPT5 Proの洞察により、単純なバグ修正から根本的アーキ
---
*この設計は2025-09-23にChatGPT5 Proとの協働により策定されました。*
*この設計は2025-09-23にChatGPT5 Proとの協働により策定されました。*