Skip to content

php-in-php: StringHex2bin NestedJIT via JitVmHelperLink (#22746) - #22748

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-hex2bin-22746
Jul 23, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-hex2bin-22746

Conversation

@PurHur

@PurHur PurHur commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

C / lines: lib/AOT/runtime/ already has zero *.c (#17148). Net -15 lines in StringHex2bin.php (hand-rolled NestedJIT bridge deleted).

Closes #22746

Test plan

  • ./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/Hex2binRuntimeShrinkTest.php' → OK (4 tests, 19 assertions)
  • make bootstrap-selfhost-vm-driver-execute-probe → OK

Verification transcript

PHPUnit 9.6.21 by Sebastian Bergmann and contributors.
....                                                                4 / 4 (100%)
OK (4 tests, 19 assertions)

bootstrap-selfhost-vm-driver-execute-probe: OK .../build/selfhost-lib-spine-smoke

php-src ref: ext/standard/string.c — PHP_FUNCTION(hex2bin) (semantics unchanged; compile-path only).

Made with Cursor

Route Hex2binJitHelper compile through JitVmHelperLink::ensureCompiled
(peer #22701) so user-script env clearing and insert-block restore are
shared; drop hand-rolled NestedJitCompileScope::run.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit ebd3dc3 into master Jul 23, 2026
@PurHur
PurHur deleted the agent/runtime-php-hex2bin-22746 branch July 23, 2026 21:50
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: StringHex2bin NestedJIT → JitVmHelperLink::ensureCompiled (#1492)

1 participant