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

@ -54,12 +54,13 @@ fn emit_unified_mir_call(
"name": name
});
}
Callee::Method { box_name, method, receiver } => {
Callee::Method { box_name, method, receiver, certainty } => {
call_obj["mir_call"]["callee"] = json!({
"type": "Method",
"box_name": box_name,
"method": method,
"receiver": receiver.map(|v| v.as_u32())
"receiver": receiver.map(|v| v.as_u32()),
"certainty": match certainty { crate::mir::definitions::call_unified::TypeCertainty::Known => "Known", crate::mir::definitions::call_unified::TypeCertainty::Union => "Union" }
});
}
Callee::Constructor { box_type } => {