-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Handle the unsigned shift operator in dart2js #30890
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
Comments
dart2js canonicalizes all bit operations and shifts to unsigned 32-bit values. We might in future make >> return a signed result. This is quite involved since >> is optimized, requiring all optimizations to be updated (including type analysis and js_runtime helpers for special cases). |
The |
I'm fine with this operator not being overridable in dart2js FWIW. |
Edit: only in Dartium But unminified JS result: minified JS result: Dart2js minified vs non-minified treats shifts differently if value < 0 |
This operator is an overridable operator that is available in general. The |
Optimization tasks
|
Implementation done (39aa454).
|
I decided to split up the cleanup into a separate issue, so we can properly track the fact that the feature is ready to ship. |
This is the dart2js issue for #30886.
This is a non-breaking change and is not required to be in Dart 2.0.
Probably blocked by #30889.
The text was updated successfully, but these errors were encountered: