import type { Binding } from '../check/index.js'; import type { Emitter } from './context.js'; /** The bar fields an engine fills from the host's bar, `compiled-program.md` 2.10. */ export declare const BAR_FIELDS: readonly string[]; /** The `bar.*` facts of `language.md` 7.2, which 2.10 makes registers as well. */ export declare const BAR_FACTS: readonly string[]; export type Placement = 'slot' | 'cell' | 'register'; /** * The register a built-in series is read from, or nothing when the name is not * one. */ export declare function registerOfName(e: Emitter, name: string): number | undefined; /** * Names whose value is a declaration handle, which `var` cannot change. * * A handle is settled before bar 0 and the engine writes it into the slot the * declaration names (2.11), so there is nothing for a cell to carry forward and * nothing to carry it forward from: `var grid = table(...)` and * `grid = table(...)` are the same declaration, and a reader who wrote the * first should not get a different program from the second. */ export declare function markDeclarationHandles(e: Emitter): void; /** Where a name's value lives, the checker's answer with the three cases above. */ export declare function placementOf(e: Emitter, binding: Binding): Placement; /** The register a history read of a name reads from, allocating it if needed. */ export declare function shadowRegister(e: Emitter, binding: Binding): number; /** * Decides every register before a single instruction is emitted. * * It has to happen first because the prologue and the epilogue that keep a * shadow register in step with its cell are instructions like any other, and * they cannot be written after the list they belong at the ends of. */ export declare function prepareRegisters(e: Emitter): void; //# sourceMappingURL=registers.d.ts.map