Self-host M3: JIT unit probe inventory emit driver (#2879) - #3769
Merged
Merged
Conversation
Wire strict JIT unit probe to inventory compile_driver.php with PHP_COMPILER_M3_COMPILE_MODE=compile at runtime (parity with helloworld and compiler unit probes). Register jit_unit_probe/compile_driver.php M3 emit sidecar, set jit_unit_probe_m3_emit log prefix, and extend BootstrapJitUnitProbeTest for inventory strict mode. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
force-pushed
the
agent/issue-2879-jit-unit-inventory-emit
branch
from
May 30, 2026 12:36
fb34f91 to
1ca93ee
Compare
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
test/selfhost/jit_unit_probe/compile_driver.phpwithPHP_COMPILER_M3_COMPILE_MODE=compile+PHP_COMPILER_M3_RUNTIME_COMPILE=1at emit runtime (was missing vs helloworld/compiler-unit probes).jit_unit_probe/compile_driver.phpM3 emit sidecar (JIT_UNIT_PROBE_COMPILE_DRIVER_SIDECAR_REL) inlib/JIT.php/M3EmitTuTrivialEchoAot.php.bin/compile.phpsetsPHP_COMPILER_M3_EMIT_LOG_PREFIX=jit_unit_probe_m3_emitfor the JIT inventory driver path.jit_unit_probe_m3_emit_native_entry.phpon disk; compiler-unit probe gets the same compile-mode runtime env for parity.php-src reference
N/A — bootstrap/M5 emit honesty (
docs/bootstrap-selfhost.md).Verification
Notes
Expr_PreIncwhen AOT-lintingjit_unit_probe/main.php(bundle pullslib/JIT.php); that predates this PR and also affectscompiler_unit_probe/main.phplint. Inventory emit path is what Self-host M3: inventory emit driver for unit probes (retire *_m3_emit_native_entry.php) #2879 targets; bundle link is unchanged.*_m3_emit_native_entry.phpwhen all probes green (Self-host M3/M5: delete retired *_m3_emit_native_entry.php after inventory emit driver green #3032).Closes #2879
Made with Cursor