Skip to main content

SiteTables

Type Alias SiteTables 

Source
pub type SiteTables = (Vec<((u64, usize), String)>, Vec<((u64, usize), usize)>);
Expand description

Every call site and yield site registered so far, as the cache stores them: (op_hash, ip) keys with their recorded value.

The tables are built by the COMPILER (finish_chunk), so a run that loads a program from the bytecode cache never fills them — and everything that reads them silently degrades: a generator’s parked for…of/yield* iterators are not closed on an injected .return(), so their finally never runs, and a TypeError loses the callee’s source text. Storing them alongside the program is what makes a cache hit behave like a compile.