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: dummy receiver optimization can be applied to super calls #22727

Open
rakudrama opened this issue Mar 9, 2015 · 0 comments
Open

dart2js: dummy receiver optimization can be applied to super calls #22727

rakudrama opened this issue Mar 9, 2015 · 0 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. dart2js-optimization type-enhancement A request for a change that isn't a bug web-dart2js

Comments

@rakudrama
Copy link
Member

Super calls look like one of the following

   X.Local.prototype.$index.call(resp, resp, "items")
   resp.super$Local$$index(resp, items)

In both cases we could replace the second 'resp' with a dummy receiver '0' if the target never references the 'receiver' parameter.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
rakudrama added a commit that referenced this issue Aug 24, 2016
@vsmenon vsmenon added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Jul 20, 2019
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. dart2js-optimization type-enhancement A request for a change that isn't a bug web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants