Language: array_map() JIT/AOT parity (#542) - #550
Merged
Merged
Conversation
Wire array_map through ArrayBuiltinHelper with compile-time string callbacks and null identity copy, update the capability matrix, and add compliance/AOT fixtures. AOT verified for strval mapping and null copy in Docker. Co-authored-by: Cursor <cursoragent@cursor.com>
Regenerate bootstrap-inventory.md after merge. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
array_map()in the JIT viaArrayBuiltinHelper::buildMapArray()for compile-time string builtin callbacks (strval,intval, etc.) andnullidentity copy.ext/standard/array_map.php::call()to the helper; updatedocs/capabilities.mdto JIT/AOT yes.test/compliance/cases/stdlib/array_map_jit.phptandtest/fixtures/aot/cases/array_map.phpt.Test plan
array_map('strval', [1,2,3])→123viabin/compile.phpinphp-compiler:22.04-devarray_map(null, ['a','b'])identity copy →abarray_map.phpt,array_map_null.phpt)./script/ci-local.shon a host with working JIT runtime (harness JIT via stdin segfaults; AOT path green)Closes #542
Made with Cursor