Parent: #1016 Performance evidence: #473
Executed evidence
On main at a4d47ae, the real-GC ReleaseFast frozen representative_json attribution publishes two optimizer artifacts and preserves checksum 324952086. The scored cumulative runtime-operation histogram is exact and reconciles to the aggregate 1,440,643 callbacks:
- load_var: 480,214
- get_prop: 480,215
- call_with_this: 480,214
The hot inner loop contains two matching chains per iteration: JSON.stringify(record) and JSON.parse(encoded). JIT-on reduces VM dispatch from 23,184,279 to 9,224,978, but these stable global/property/call chains remain runtime callbacks. OSR entries and deoptimizations are both 17,113; those residual exits are a separate regular-checkpoint/loop-exit concern and must not be hidden by this issue.
Scope
- Guard and reuse stable global Environment reads for immutable observed bindings inside a selected OSR region.
- Guard the corresponding own data property/shape for JSON.stringify and JSON.parse without bypassing ordinary mutation or accessor semantics.
- Reuse the existing optimizer call-link protocol for the proven builtin target, preserving this, argument order, exceptions, steps, invalidation, and moving-GC roots.
- Keep every miss on the canonical runtime-operation path and retain exact side-exit reconstruction.
Acceptance
- A focused loop pins exact callback histograms before and after while proving identical result, steps, exception ordering, and mutation invalidation.
- The frozen representative_json checksum remains 324952086 and the three callback counts materially fall without increasing VM dispatch or deoptimizations.
- Required-VM/JIT differential, moving-GC, no-GIL, and unsuppressed TSan gates pass.
- Exact-parent base/variant/control evidence shows no unrelated regression.
Guardrails
No workload/source recognition, global freezing, skipped observable lookups, disabled callbacks, changed thresholds, enlarged fixed scratch, or benchmark-only fast path.