Skip to content

php-in-php: StringStrcoll NestedJIT → JitVmHelperLink::ensureCompiled (#22256) - #22257

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-strcoll-jitvmhelperlink
Jul 22, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-strcoll-jitvmhelperlink

Conversation

@PurHur

@PurHur PurHur commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #22256

Net shrink

  • lib/JIT/Builtin/StringStrcoll.php: 157 → 137 lines; hand-rolled NestedJIT block replaced by JitVmHelperLink::ensureCompiled.

Test plan

  • ./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/StrcollRuntimeShrinkTest.php' → OK (6 tests, 18 assertions)
  • ./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-vm-driver-execute-probe' → OK
  • Pre-claim gates: inventory 6392/6392, user_release_ready: yes, helloworld OK

php-src reference

  • ext/standard/string.c — PHP_FUNCTION(strcoll) (semantics unchanged; compile-path only)

Made with Cursor

…#22256)

Route StrcollJitHelper compile through the shared helper-link path (env clear, insert restore, helper-runtime cache) instead of a hand-rolled NestedJitCompileScope block.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

php-in-php: StringStrcoll NestedJIT → JitVmHelperLink::ensureCompiled (#1492)

1 participant