Category
php-in-php · runtime-shrink (#1492, peer #23097 PowInt / #23116 ArrayDiff / #22575 MathFrexp)
Problem
lib/JIT/Builtin/StringVarDump.php still hand-rolls NestedJitCompileScope::run + parseAndCompile + new JIT() for VarDumpJitHelper.php. Peer string/math runtimes route helper compile through JitVmHelperLink::ensureCompiled for consistent user-script env clearing, insert-block restore, and helper-runtime cache.
php-src reference
PHP implementation target
lib/JIT/Builtin/StringVarDump.php — replace ensureJitHelperCompiled body with JitVmHelperLink::ensureCompiled + lookupCompiled; drop use PHPCompiler\JIT / hand-rolled NestedJitCompileScope::run (keep ::isActive early-return if still required)
test/unit/VarDumpRuntimeShrinkTest.php — guard JitVmHelperLink::ensureCompiled, no hand-rolled NestedJitCompileScope::run / parseAndCompile / new JIT(
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/VarDumpRuntimeShrinkTest.php'
make bootstrap-selfhost-vm-driver-execute-probe
Done when
Refs #1492, #9195, #13241, #16565, #23097
Category
php-in-php· runtime-shrink (#1492, peer #23097 PowInt / #23116 ArrayDiff / #22575 MathFrexp)Problem
lib/JIT/Builtin/StringVarDump.phpstill hand-rollsNestedJitCompileScope::run+parseAndCompile+new JIT()forVarDumpJitHelper.php. Peer string/math runtimes route helper compile throughJitVmHelperLink::ensureCompiledfor consistent user-script env clearing, insert-block restore, and helper-runtime cache.php-src reference
php_var_dump_ex(semantics unchanged; compile-path only)PHP implementation target
lib/JIT/Builtin/StringVarDump.php— replaceensureJitHelperCompiledbody withJitVmHelperLink::ensureCompiled+lookupCompiled; dropuse PHPCompiler\JIT/ hand-rolledNestedJitCompileScope::run(keep::isActiveearly-return if still required)test/unit/VarDumpRuntimeShrinkTest.php— guardJitVmHelperLink::ensureCompiled, no hand-rolledNestedJitCompileScope::run/parseAndCompile/new JIT(Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/VarDumpRuntimeShrinkTest.php' make bootstrap-selfhost-vm-driver-execute-probeDone when
StringVarDumpusesJitVmHelperLink::ensureCompiledonly for helper compilemake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #9195, #13241, #16565, #23097