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:
@ -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との協働により策定されました。*
|
||||
|
||||
Reference in New Issue
Block a user