Skip to content
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

[dart2js] Measure removal of interceptors #49314

Open
4 tasks
fishythefish opened this issue Jun 22, 2022 · 0 comments
Open
4 tasks

[dart2js] Measure removal of interceptors #49314

fishythefish opened this issue Jun 22, 2022 · 0 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. type-task A well-defined stand-alone task web-dart2js

Comments

@fishythefish
Copy link
Member

One area where we think the powerset domain will prove much more effective than typemasks is in removal of interceptors. We can validate this with an analysis similar to #49310:

  • Identify where we're able to replace intercepted calls with non-intercepted ones based on the inferred type of the receiver/target.
  • Measure how often we're currently able to perform this replacement.
  • Measure how often we would replace the call with just the static type + closed world (no typemasks).
  • Measure how often we would replace the call with the static type + closed world + powerset domain (no typemasks).
@fishythefish fishythefish added type-task A well-defined stand-alone task web-dart2js area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. type-task A well-defined stand-alone task web-dart2js
Projects
None yet
Development

No branches or pull requests

1 participant