refactor(B6.1): move Obj-C/JNI call lowering to lower/ffi.zig

Verbatim relocation of the 24-method FFI cluster (selector/class-object
interning, FFI intrinsic + JNI calls, foreign instance/static method
lowering, super calls, foreign-class registration, Obj-C defined-class
method registration, JNI env TLS fids, JNI main-stub synthesis) plus
the file-scope jniMapParamType (no alias needed — all callers moved)
into src/ir/lower/ffi.zig. 24 aliases on Lowering keep all call sites
unchanged.

Method pub-flips: emitObjcDefinedAllocAndInit, findForeignMethodInChain.

Gate: zig build OK; zig build test 426/426; run_examples 541/0; all 37
.ir snapshots byte-identical, zero expected/ churn.
This commit is contained in:
agra
2026-06-10 14:03:21 +03:00
parent 1af80a4c38
commit 638a048cc5
2 changed files with 1234 additions and 1158 deletions

File diff suppressed because it is too large Load Diff

1205
src/ir/lower/ffi.zig Normal file

File diff suppressed because it is too large Load Diff