code wiki / _hdl_build / nx_jsfuel_probe.nx

nx_jsfuel_probe.nx

buildroot/runtime/_hdl_build/nx_jsfuel_probe.nx

5374 B111 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_jsfuel_probe.nx -- GATE for the JS execution fuel + eval-cell arena (2026-07-27). Teeth: T1 a NESTED infinite loop terminates (defeats the per-loop EV_LOOP_CAP; only global fuel stops it) T2 fuel exhaustion is reported honestly (ev_fuel_exhausted==1) and spend matches the armed budget T3 static page content SURVIVES the fuel-aborted render (fail-safe, not fail-blank) T4 arena cells are ZEROED -- the semantic MAP_ANONYMOUS equivalence the arena must preserve T5 arena cells are DISTINCT + 16B-strided (no aliasing: two cells must not be the same box) T6 arena footprint is BOUNDED (the whole point: 200k steps must not cost 200k pages) 0 = GREEN / 1 = RED.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_js_eval.nx nx_jsfuel_probe.nx

imports: nx_syscalls.nxnx_js_eval.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ev_cell fp_chk fp_p sys_write ev_cell_bytes fp_atoi sys_now_ms sys_mmap ↻ sys_clock_gettime_mono dt_parse dt_new sys_mmap ↻ dt_alloc dt_node dt_parse_into sys_mmap ↻ nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc dt_create_element_span dt_alloc ↻ dt_node ↻ dt_dup_lower sys_mmap ↻ dt_is_void dt_ceq dt_parse_attrs dt_is_name dt_is_ws dt_set_attr_span dt_node ↻ sys_mmap ↻ dt_dup_lower ↻ dt_attr_at dt_ceq ↻

structs

none

consts

none

functions

13func fp_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: fp_pnfp_chkmain calls 1: sys_write
14func fp_pn(v: i64) -> i64
called by 1: main calls 3: fp_psys_mmapsys_write
23func fp_chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64
called by 1: main calls 1: fp_p
29func fp_has(buf: *u8, blen: i64, needle: *u8, nl: i64) -> i64
called by 1: main
43func fp_atoi(s: *u8) -> i64
called by 1: main
54func main(argc: i64, argv: *i64) -> i64