Files
scriptc/tests/fixtures/self-hosting/ir-collections.ts
Chris Tate 7a30a159eb feat(compiler): enable native IR construction for self-hosting (#491)
- Compile native collection views and recursive discriminated IR structures.
- Preserve optional-chain behavior and union payload ownership across C and LLVM.
- Exercise real IR builders and analyses in native executables with differential coverage.
2026-09-27 11:41:52 -05:00

12 lines
536 B
TypeScript

import { HANDLE_KINDS, POINTER_KINDS, RUNTIME_ERROR_CLASSES } from "../../../packages/compiler/src/ir/ir.js";
import type { IrType } from "../../../packages/compiler/src/ir/ir.js";
const kinds: readonly IrType["kind"][] = ["f64", "string", "netSocket", "procStream", "void"];
for (const kind of kinds) {
console.log(kind, HANDLE_KINDS.has(kind), POINTER_KINDS.has(kind));
}
console.log(HANDLE_KINDS.size, POINTER_KINDS.size);
for (const [name, info] of RUNTIME_ERROR_CLASSES) {
console.log(name, info.lib, info.kind, info.base);
}