Skip to content

Bootstrap/self-host: remove Compiler::compileFunc entry stub on M3 compile spine #9213

Description

@PurHur

Category

bootstrap

Problem

Self-host AOT compile-spine audit shows PHPCompiler\Compiler::compileFunc is still an entry stub under PHP_COMPILER_SELFHOST_AOT=1 + PHP_COMPILER_M3_COMPILE_DRIVER=1.

This blocks shrinking the remaining stub surface on the parseAndCompile → standalone → Compiler::compile spine.

Evidence (current)

docs/selfhost-aot-stub-audit.md (generated by script/audit-selfhost-aot-stubs.php) currently lists:

  • Self-host entry stubs: PHPCompiler\Compiler::compileFunc (compiler_spine)

php-src reference

Not php-src specific; this is a self-host/bootstrap completeness gap.

Repro / how to observe

php script/audit-selfhost-aot-stubs.php --check

Confirm Compiler::compileFunc appears under Self-host entry stubs.

Scope (this repo)

  • lib/Compiler.php (or wherever compileFunc is implemented)
  • Self-host lowering policies and audit sources:
    • script/selfhost-aot-stub-audit-lib.php
    • docs/selfhost-aot-stub-audit.md

Done when

  • Compiler::compileFunc no longer appears under Self-host entry stubs in docs/selfhost-aot-stub-audit.md.
  • php script/audit-selfhost-aot-stubs.php --check stays green.
  • Fast self-host gates still pass:
    • make bootstrap-selfhost-vm-driver-execute-probe
    • make north-star5-verify-fast

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:compilerCompiler / CFG / JITimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevEx

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions