pub fn string_obj_constant(s: &str) -> *const StringObjExpand description
JIT-compile-time per-element materializer for *const StringObj constants
inside ArrayStringObj
(refcount = 1) and boosts the refcount by one for the constant’s permanent
share — the JIT-emitted code pushes the returned pointer onto a freshly
allocated TypedArray<*const StringObj> and transfers the share to the
array’s per-element slot (matches the VM-side NewStringV2 +
TypedArrayPushString transfer convention at
crates/shape-vm/src/executor/v2_handlers/array.rs:803-828).
Mirrors crate::ffi::string::arc_string_constant’s permanent-share
discipline for the §2.7.5 Arc<String> carrier, but uses the v2-raw
StringObj carrier per ADR-006 §2.7.5 + §2.7.24 Q25.A SUPERSEDED + audit
deliverable (b) §4.1.B.
ckpt-6-prime Group X JIT FFI String/Decimal BUILD (2026-05-15) — per- element NewStringV2 equivalent at the JIT mir_compiler dispatch site.