Files
scriptc/tests/library-mode/contract-int-libcall/profile.json
T
Chris Tate 383f43bdeb Keep integer-slot checking working in the native compiler for library calls with bytes or array arguments
The global-effects summary typed each library-call argument as a
structural `{ kind: string }`. The native compiler extracted that one
record arm from the IrType union and threw on bytes, array and other
arms with more fields, so `scriptc build --lib` failed with SC3004 for
integer-slot profiles that call, for example, `Buffer.alloc` or
`String.fromCharCode`. The helper now takes `IrType`, and the bootstrap
test compares native and Node sidecars for such a profile.
2026-10-16 02:51:23 -05:00

25 lines
586 B
JSON

{
"profile_format": 1,
"name": "conformance-contract-int-libcall",
"entry": "lib.ts",
"emission": "llvm",
"abi": {
"prefix": "kl_",
"init_symbol": "kl_init",
"sink_register_symbol": "kl_set_panic_sink",
"collect_symbol": null,
"result_reset_symbol": null
},
"exports": [],
"sidecar": {
"wire_version": 1,
"abi_version": 1,
"snapshot_format": 1,
"build_id_symbol": "kl_build_id",
"abi_version_symbol": "kl_abi_version",
"model": "Model",
"msg": "Msg",
"integer_slots": [{ "slot": "Model.phase", "class": "i64" }]
}
}