Skip to content

Commit c11c472

Browse files
owen-mcCopilot
andcommitted
JS: Complete migration to shared SSA
Use shared SSA for definitions, refinements, captures, and local/global data flow. Remove JavaScript's separate liveness, phi insertion, and reaching-definition computation while preserving its public SSA APIs as shared-backed adapters. Keep global continuing-value reads distinct from expression occurrences, preserve captured-variable and legacy Configuration guard behavior, and restrict reflective with-read shortcuts to type inference. Propagate post-updates after operation completion and preserve updates across value-preserving reassignments using the existing modeled may-value flow. Avoid large intermediate joins when constructing captures, mapping l-values, and inferring captured assignment values. Infer values directly from SSA definitions as well as neighboring reads, avoiding slow propagation along long reference chains. Cache the JavaScript SSA input adapters with their shared implementation. Update test expectations and the change note. Keep known baseline clone and short-circuit false positives marked SPURIOUS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 822945e commit c11c472

49 files changed

Lines changed: 1472 additions & 1342 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: majorAnalysis
3+
---
4+
* JavaScript and TypeScript data flow now use the shared SSA implementation, including refinements and conservative captured-variable definitions. The existing public SSA APIs remain available as shared-backed adapters; the separate JavaScript SSA computation has been removed. This improves barrier-guard handling at control-flow joins, reducing false positives when guarded and overwritten values merge, and improves the ordering of post-update flow around calls and assignments.
5+
* Type inference uses direct SSA definition-to-read steps to avoid slow propagation along long reference chains. Captured-variable construction filters capture points before joining them to variables, avoiding large intermediate joins.

0 commit comments

Comments
 (0)