Commit 1875c7f
committed
fix(wasm): align typed-receiver CHA dispatch confidence to 0.8
The inline CHA expansion in buildCallEdges and buildChaPostPass used
computeConfidence(relPath, t.file) - CHA_DISPATCH_PENALTY for all CHA
targets, producing 0.6 for cross-directory interface dispatch (same-dir
= 0.7, minus 0.1 penalty). runChaPostPass (helpers.ts) and
runPostNativeCha (native-orchestrator.ts) both hardcode 0.8 for
interface/CHA-dispatch edges.
The deduplication in runChaPostPass uses the existing DB edge as-is
and skips reinsertion, so the 0.6 edges from the inline pass were never
upgraded to 0.8.
Fix: typed-receiver (interface) dispatch branches now use hardcoded 0.8
matching the post-pass constants. The this/super branch keeps
computeConfidence-based proximity scoring to remain aligned with
runPostNativeThisDispatch.
parity-compare.mjs --langs typescript --hybrid goes green (was 12
edge diffs). Closes #1470
docs check acknowledged1 parent 7095ffe commit 1875c7f
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| 731 | + | |
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
734 | 736 | | |
735 | 737 | | |
736 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
737 | 746 | | |
738 | 747 | | |
739 | 748 | | |
| |||
1278 | 1287 | | |
1279 | 1288 | | |
1280 | 1289 | | |
| 1290 | + | |
1281 | 1291 | | |
1282 | 1292 | | |
1283 | 1293 | | |
| |||
1295 | 1305 | | |
1296 | 1306 | | |
1297 | 1307 | | |
| 1308 | + | |
1298 | 1309 | | |
1299 | 1310 | | |
1300 | 1311 | | |
1301 | 1312 | | |
1302 | 1313 | | |
1303 | | - | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1304 | 1322 | | |
1305 | 1323 | | |
1306 | 1324 | | |
| |||
0 commit comments