Repository navigation
Commit 52b8fcc
JS: Complete migration to shared SSA
Use shared SSA for definitions, refinements, captures, and local/global data flow. Remove standalone JavaScript liveness, phi insertion, and reaching-definition computation while preserving the public SSA APIs as shared-backed adapters.
Register post-update completion positions via `SsaConfig::postUpdateRead` so post-updates take effect after call and assignment completion without adding intermediate reads along ordinary reference chains, and preserve updates across value-preserving reassignments using modeled may-value flow.
Keep global continuing-value reads internal so synthesized SSA reads do not leak through `flowsTo`, `getALocalSource`, `analyze`, or `AccessPath::getAReferenceTo`, preserve captured-variable, arrow `super` implicit-`this`, and legacy `Configuration` barrier-guard behavior, and restrict reflective `with`-read shortcuts to type inference.
Avoid large intermediate joins in capture-point construction, variable refinement lookup, l-value mapping, and captured assignment inference, add direct SSA definition-to-read steps for type inference, and consolidate cached SSA adapters into `SsaCachedStage`.
Update test expectations and add a change note.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 86c189e commit 52b8fcc
41 files changed
Lines changed: 1121 additions & 1955 deletions
File tree
- javascript/ql
- lib
- change-notes
- semmle/javascript
- dataflow
- internal
- src/NodeJS
- test
- library-tests
- BarrierGuardPhiInputs
- DataFlow
- TaintTracking
- query-tests/Security
- CWE-022/TaintedPath
- CWE-078
- SecondOrderCommandInjection
- UnsafeShellCommandConstruction
- lib
- CWE-079/DomBasedXss
- CWE-089/untyped
- CWE-915/PrototypePollutingFunction
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
416 | | - | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
436 | 438 | | |
437 | 439 | | |
438 | 440 | | |
439 | | - | |
| 441 | + | |
| 442 | + | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| |||
0 commit comments