Skip to content

php-in-php: StringCaseCompare NestedJIT → JitVmHelperLink::ensureCompiled (#1492) #23862

Description

@PurHur

Category

php-in-php · runtime-shrink (#1492, peer #23832 / #15225)

Problem

lib/JIT/Builtin/StringCaseCompare.php still hand-rolls NestedJitCompileScope::run + parseAndCompile for CaseCompareJitHelper.php. Recent migrations (StringStrtotime #23832, ArrayDiffKey #23787) route through JitVmHelperLink::ensureCompiled, gaining helper-runtime cache hits and consistent user-script env clearing.

php-src reference

PHP implementation target

  • lib/JIT/Builtin/StringCaseCompare.php — replace hand-rolled NestedJIT with JitVmHelperLink::ensureCompiled + lookupCompiled
  • test/unit/StrcasecmpRuntimeShrinkTest.php — guard no hand-rolled NestedJIT remains

Repro

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
vendor/bin/phpunit test/unit/StrcasecmpRuntimeShrinkTest.php
'

Done when

  • NestedJitCompileScope::run removed from StringCaseCompare.php
  • JitVmHelperLink::ensureCompiled + lookupCompiled used
  • StrcasecmpRuntimeShrinkTest green
  • make bootstrap-selfhost-vm-driver-execute-probe green

Refs #1492, #15225, #23832

claim: PHP Runtime → PHP — starting this run

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 / JITenhancementNew feature or requestimplementation-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