Skip to content

Stdlib web batch: hash/preg verify + filter self-host AOT (#1119, #1121, #1122)#1150

Merged
PurHur merged 1 commit into
masterfrom
feat/stdlib-web-batch
May 23, 2026
Merged

Stdlib web batch: hash/preg verify + filter self-host AOT (#1119, #1121, #1122)#1150
PurHur merged 1 commit into
masterfrom
feat/stdlib-web-batch

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 23, 2026

Summary

Fixtures verified OK

Fixture bootstrap-aot-link self-host AOT (PHP_COMPILER_SELFHOST_AOT=1)
test/bootstrap-aot/stdlib_hash.php OK OK
test/bootstrap-aot/stdlib_preg.php OK OK
test/bootstrap-aot/stdlib_filter.php OK OK (was 0m vs 420m before policy fix)

Test plan

  • ./vendor/bin/phpunit --filter SelfHostBuiltinPolicyTest
  • Individual compile+run for stdlib_hash, stdlib_preg, stdlib_filter under self-host AOT
  • make bootstrap-selfhost-probe — still blocked by unrelated ConstStringFolder LLVM verify (Instruction does not dominate all uses!); not introduced by this PR

Closes #1119, #1121, #1122

Made with Cursor

Register filter builtins in SelfHostBuiltinPolicy so PHP_COMPILER_SELFHOST_AOT=1
no longer external-stubs them; hash/preg were already required (#1119, #1121).
Update stdlib JIT audit to recognize JitFilter lowering.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 5f371b5 into master May 23, 2026
1 check passed
@PurHur PurHur deleted the feat/stdlib-web-batch branch May 23, 2026 18:57
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.

Stdlib: hash() and hash_hmac() JIT/AOT

1 participant