code wiki / _hdl_build / nx_js_regalloc_probe.nx
nx_js_regalloc_probe.nx
buildroot/runtime/_hdl_build/nx_js_regalloc_probe.nx
about
nx_js_regalloc_probe.nx -- validates the register-allocation eligibility DETECTOR (jit_intloop_eligible),
step 1 of the sovereign optimizing tier. Compiles each source to bytecode and asks the detector for a verdict
(1 eligible / 0 unsafe-op / 2 no-loop / 3 pressure). Confirms it ACCEPTS hot int loops and DECLINES anything
with a float/string const, division, call, closure, object, array, or no loop -- i.e. it is decline-safe by
construction (the codegen that consumes this only ever sees register-safe int loops). expect_exit: 0
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_js_vm.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 8 | func rw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 9 | func vname(v: i64) -> i64 |
| 16 | func check(src: *u8, expect: i64, tal: *i64) -> i64 |
| 28 | func main(argc: i64, argv: *i64) -> i64 |