Skip to content

Self-host P0: JIT external class method calls in bundled lib (PhpParser, etc.) #579

Description

@PurHur

Blocks

Self-host bundle AOT hits undefined external methods, e.g.:
Call to undefined method phpparser\nodetraverser::addvisitor

Bundled lib/Compiler.php uses vendor types at runtime; JIT must proxy or stub external ->method() calls used in the minimal closure.

Goal

Minimal fix: JIT TYPE_METHODCALL / static dispatch for external classes used in bundle (start with PhpParser NodeTraverser::addVisitor or defer via compile-time stubs).

Acceptance

Non-goals

  • Compiling full vendor/nikic/php-parser

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions