code wiki / js

topic: js

94 modules sharing the js name family (derived from the tree's prefix discipline).

The sovereign browser's JavaScript lane: parser, evaluator with arena allocation and fuel budgeting, and the JS2 engine that took real-site fetching from hangs to working renders (a 205 KB Wikipedia page in ~half a second). The doctrine is js-last-mile-only — JS exists to make the browser and the served pages work, never as an implementation language for organs. Current known frontier: generator support, the blocker for the heaviest bundle-driven sites.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_js_arena_gate.nxescape-aware ARENA RECLAMATION. Proves (A) call-heavy code that USED to exhaust493
nx_js_arena_probe.nxisolate the escaped-closure crash: interpreter vs JIT. expect_exit: 0 license_tier: ORIGINAL143
nx_js_autoglobal_hoist_gate.nx363
nx_js_binopfuse_gate.nxDIFFERENTIAL correctness gate for the JIT const-operand BINOP fusion peephole1196
nx_js_bom_gate.nx585
nx_js_bundle_probe.nxname the NEXT construct blocking real bundles (2026-07-27).524
nx_js_callapply_gate.nx323
nx_js_callcost_probe.nxdifferential CALL-COST breakdown for the last >5x kernel (recursion 6.86x).484
nx_js_compile.nxthe bytecode-VM PARITY GATE (rungs 2..5c): every chk() runs the SAME source2131
nx_js_conformance.nxWB-JS-001 conformance HARNESS (test262-lite, no-wave2339
nx_js_consumer_swap_gate.nxCONSUMER SWAP: route the renderer's page scripts through the VM/JIT1627
nx_js_dom_demo.nxINDEPENDENT proof of the JS<->DOM binding (R-JS-DOM1/2/3): seed a realistic633
nx_js_earley_diag.nxrun the earley DIAGNOSTIC bundle (head+raw+diagfoot): replays test(k)303
nx_js_error_gate.nxError/TypeError/RangeError constructors + Array/Error called WITHOUT `new`,747
nx_js_es_census.nxMEASURE the modern-ES surface of the sovereign JS engine (present vs absent), so626
nx_js_eval.nxR-JS-EVAL (WB-JS-001 rung 2): the ECMAScript tree-walking4641268
nx_js_evalorder_gate.nx493
nx_js_event_loop_gate.nx715
nx_js_extends_gate.nx705
nx_js_f64.nxJS Number (f64) <-> i64 / decimal-string converters for the sovereign JS engine.1365
nx_js_f64_test.nxgate for the f64 converter library nx_js_f64.nx (R-JS-F64-0/1).836
nx_js_f64lit_probe.nxcheck 0.1 parses to the correctly-rounded IEEE bits. expect_exit: 0 license_tier: ORIGINAL143
nx_js_feedback_gate.nxP6 rung 1: TYPE FEEDBACK (Maglev's "runtime metadata collected during663
nx_js_fetch_gate.nx635
nx_js_floatfuse_probe.nxSELF-ASSERTING perf-regression GATE for the const-fusion float fallback.524
nx_js_fnprop_diag.nxpinpoint Splay's runtime gap: fn-static-property + String(). Minimal calls (avoid arena flake). expect_exit: 0274
nx_js_fuel_gate.nxnon-vacuous tooth for the GLOBAL JS execution budget (debt 1785032369).411
nx_js_gc_gate.nxprove the non-moving mark-sweep collector (conservative word-scan made EXACT by the785
nx_js_h2h_bench.nxHEAD-TO-HEAD: our sovereign VM/JIT vs V8 (node v22) on the SAME compute kernels,1557
nx_js_h2h_probe.nxprobe the limits the h2h benchmark hit (fib depth/call-count, array capacity). expect_exit: 0244
nx_js_headless_render.nxRUNG 5 CONSUMER + API-CAPTURE: fetch a REAL site over sovereign TLS, fetch its1215
nx_js_headless_render_gate.nxproves rung 5 (headless hydration): the ASYNC rungs (event loop /755
nx_js_hydrate_index_gate.nxCLOSES THE LOOP: a page whose INLINE JS builds content -> hydrate978
nx_js_indel_gate.nxthe `in` operator + `delete` operator, V8-pinned, both tiers. `in` = property existence414
nx_js_instanceof_gate.nx303
nx_js_jit_gate.nxP5 BASELINE JIT: prove it (A) is CORRECT vs the VM and the tree-walker on the2414
nx_js_jit_keystone.nxP5 BASELINE-JIT KEYSTONE (SOTA ladder, after P4 ICs; mirrors how the VM1192
nx_js_jitgc_gate.nxprove JIT + GC COEXISTENCE: the P5 native JIT runs WITH GC enabled, a collection can494
nx_js_lex.nxR-JS-LEX (WB-JS-001 rung 0): the ECMAScript TOKENIZER, the65330
nx_js_missingarg_gate.nx363
nx_js_navier_diag.nxdiagnose NavierStokes runtime gap. Minimal calls (tree+VM). expect_exit: 0 license_tier: ORIGINAL244
nx_js_objchurn_probe.nxdiagnose the object-churn gap: is it the CTOR CALL, the property SETs, or obj_new? expect_exit: 0294
nx_js_objproto_gate.nx313
nx_js_octane_crypto.nxrun the REAL Octane Crypto benchmark (unmodified Google source: jsbn RSA-1024,433
nx_js_octane_deltablue.nxrun the REAL Octane DeltaBlue benchmark (unmodified Google source, harness443
nx_js_octane_earley.nxrun the REAL Octane EarleyBoyer benchmark (unmodified scheme2js source, harness623
nx_js_octane_memcensus.nxQUANTIFY the GC debt: run each real Octane benchmark ONCE and report the444
nx_js_octane_navier.nxrun the REAL Octane NavierStokes (unmodified, harness stubbed). Self-validates in513
nx_js_octane_next_diag.nxPARSE-FIRST diagnostic for the next Octane targets (DeltaBlue/RayTrace/Crypto).694
nx_js_octane_next_run.nxattempt to RUN the three staged next-Octane benchmarks (all 3/3 parse-clean).444
nx_js_octane_raytrace.nxrun the REAL Octane RayTrace benchmark (unmodified, harness stubbed). Renders a433
nx_js_octane_regexp.nxrun the REAL Octane RegExp benchmark (126KB unmodified V8 source, harness613
nx_js_octane_regexp_ck.nxAUTHORITATIVE Octane RegExp verification: run the real 126KB V8 regexp.js442
nx_js_octane_richards.nxMILESTONE: run the REAL Octane Richards benchmark (unmodified Google source,853
nx_js_octane_splay.nxrun the REAL Octane Splay benchmark (unmodified Google source, harness stubbed) on563
nx_js_or_diag.nxlocalize the ||-SEGV: tree-walker first (prints), then VM. expect_exit: 0 license_tier: ORIGINAL153
nx_js_parse.nxR-JS-PARSE (WB-JS-001 rung 1): the ECMAScript PARSER, riding2485106
nx_js_pending_fetch_gate.nx775
nx_js_poly_ic_gate.nxP4 POLYMORPHIC inline caches: prove (A) a K-way IC gives IDENTICAL results to1425
nx_js_probes_nojit.nxto isolate JIT bugs from VM-core232
nx_js_probes_run.nxrun knowledge/octane/jsprobes.js on the VM/JIT and print its result string (differential vs node). expect_exit: 0262
nx_js_probes_vm.nxrun knowledge/octane/jsprobes.js on the VM/JIT ONLY (tree-walker skipped: call-heavy probes SIGTERM it),223
nx_js_promise_gate.nx655
nx_js_proto_gate.nxbuilt-in prototype EXTENSION on the tree tier: user code adds methods to334
nx_js_proto_probe.nxprobe prototype-based OOP on tree-walker vs VM. expect_exit: 0 license_tier: ORIGINAL214
nx_js_proto_vm_gate.nxbuilt-in prototype EXTENSION on the FAST tiers (VM interpreter BC_CALLM +485
nx_js_random_probe.nxverify Math.random(): runs, in [0,1), deterministic (seeded), matches tree-walker. expect_exit: 0443
nx_js_realbench.nxCAPSTONE of the JIT arc: realistic BUNDLE-SHAPED programs (the composition of1025
nx_js_regalloc_probe.nxvalidates the register-allocation eligibility DETECTOR (jit_intloop_eligible),634
nx_js_regex_features_gate.nxregex-engine features added during the Octane RegExp arc (2026-07-12),676
nx_js_regex_gate.nx815
nx_js_render_emit.nxread _offc/nxjs_in.html, run js_render_page (execute the page's inline scripts332
nx_js_render_gate.nxgate for R-JS-DOMWRITE: the sovereign JS engine now BUILDS rendered content.786
nx_js_rich_diag.nxprobe Richards' runtime operations to find the gap. expect_exit: 0 license_tier: ORIGINAL254
nx_js_rt_memprobe.nxmeasure the pool allocation of a REDUCED RayTrace render (20x20, checkNumber assert disabled) to quantify223
nx_js_run_demo.nxEND-TO-END COMPOSITION proof for the sovereign JS engine191
nx_js_safepoint_cost.nxmeasure the PURE per-back-edge safepoint overhead on a hot JIT loop. GC-off = no344
nx_js_semantics_gate.nxJS semantics pinned during the EarleyBoyer root-cause hunt (2026-07-11),817
nx_js_shape_gate.nxP3 SHAPES / hidden classes: prove (A) shape-keyed ICs give IDENTICAL results1675
nx_js_sota_bench.nxJS-ENGINE SOTA BENCHMARK (operator 2026-07-07: "we want to get to state of2597
nx_js_sota_scorecard.nxHONEST placement of the sovereign Nishi JS engine vs the 2026 SOTA engines1375
nx_js_speed_bench.nxthe BENCHMARK-FIRST baseline for the bytecode-VM arc: measure the tree-walker's284
nx_js_splay_diag.nxdiagnose which Splay feature is missing. expect_exit: 0 license_tier: ORIGINAL254
nx_js_spread_gate.nx444
nx_js_strcoerce_gate.nx373
nx_js_this_test.nxisolate why method-shorthand+this isn't firing. Prints rc/kind/val per probe.275
nx_js_unicode_probe.nxISOLATE the construct that blocks real bundles (2026-07-27).484
nx_js_update_gate.nxSINGLE-EVALUATION of the reference in ++/-- update expressions on BOTH tiers.687
nx_js_urlfold.nxSOVEREIGN JS constant/template URL folder (operator 2026-07-08: "get to state of the art25811
nx_js_urlfold_gate.nx624
nx_js_vm.nxBYTECODE-VM rungs 2+3+4a+4b: the AST->BYTECODE COMPILER + a TAGGED-VALUE stack VM.4436111
nx_js_vm_bench.nxKEYSTONE of the bytecode-VM arc: a minimal stack-based BYTECODE VM (tight dispatch926
nx_js_xhr_gate.nx595
nx_js_ytsig_gate.nx505