Skip to content

JS: Derive type-tracking steps from flow summaries #18125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Nov 27, 2024

Makes type-tracking aware of flow summaries whose callees can be found with getACallSimple(). This uses the SummaryTypeTracker library which I originally wrote for Ruby and which @yoff kindly ported to a parameterised module.

Apart from just being nice to have, part of the motivation for this is to be able to deprecate things like LegacyPreCallGraphStep and be able to present flow summaries as an alternative.

Note that this contains the Rename propagatesFlowExt -> propagatesFlow commit that's also present in #18132.

Evaluation looks neutral

@github-actions github-actions bot added the JS label Nov 27, 2024
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Nov 27, 2024
@asgerf asgerf force-pushed the jss/summary-type-tracker branch from 1decdaf to cab8a40 Compare November 29, 2024 13:25
@asgerf asgerf marked this pull request as ready for review December 2, 2024 12:00
@asgerf asgerf requested a review from a team as a code owner December 2, 2024 12:00
@asgerf asgerf requested a review from erik-krogh December 2, 2024 12:01
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment, where I'm not sure if anything needs fixing.

Otherwise LGTM 👍

Reminder: we have two PropertyName classes because the one in Contents.qll can't depend on DataFlow::Node.
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 (assuming the evaluation looks good).

@asgerf
Copy link
Contributor Author

asgerf commented Dec 3, 2024

Evaluation still looks fine

@asgerf asgerf merged commit e1aff15 into github:js/shared-dataflow-branch Dec 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants