Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Issue 23710024: Change the order of bitwise operators and equality/relational operators. (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, ahe
Visibility:
Public.

Description

Change the order of bitwise operators and equality/relational operators. Gives bitwise operators precedence above that of equality/relational operators. This means that a & mask == something no longer needs parentheses. Since bitwise operators didn't work on booleans, and there are probably very few custom operator&'s that accept a boolean, this is expected to not break existing code. BUG= http://dartbug.com/114 R=hausner@google.com, kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=27613

Patch Set 1 #

Patch Set 2 : Added tests. #

Total comments: 1

Patch Set 3 : Updated expectations, filed co19 bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -174 lines) Patch
M runtime/vm/token.h View 1 2 3 chunks +16 lines, -16 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/token.dart View 1 chunk +13 lines, -13 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tests/language/bit_operations_test.dart View 1 1 chunk +161 lines, -145 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Lasse Reichstein Nielsen
It seems to be as easy as this, so let's push for the making the ...
7 years, 3 months ago (2013-09-11 09:00:48 UTC) #1
Lasse Reichstein Nielsen
Spec will change, please review.
7 years, 3 months ago (2013-09-11 13:22:41 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/23710024/diff/3001/tests/co19/co19-co19.status File tests/co19/co19-co19.status (right): https://codereview.chromium.org/23710024/diff/3001/tests/co19/co19-co19.status#newcode108 tests/co19/co19-co19.status:108: Language/12_Expressions/21_Bitwise_Expressions_A01_t01: Fail This currently passes in dart2js due to ...
7 years, 3 months ago (2013-09-11 16:23:01 UTC) #3
Lasse Reichstein Nielsen
PTAL
7 years, 3 months ago (2013-09-12 09:19:28 UTC) #4
hausner
LGTM. I'm just asking myself why we don't go all the way and raise the ...
7 years, 3 months ago (2013-09-12 15:54:55 UTC) #5
Lasse Reichstein Nielsen
On 2013/09/12 15:54:55, hausner wrote: > LGTM. > > I'm just asking myself why we ...
7 years, 3 months ago (2013-09-13 11:04:50 UTC) #6
Lasse Reichstein Nielsen
Ping Peter.
7 years, 3 months ago (2013-09-18 09:01:35 UTC) #7
ahe
Kasper, could you take a look at this. I'm really not good a reviewing precedence ...
7 years, 3 months ago (2013-09-18 10:35:51 UTC) #8
kasperl
LGTM, but you also need to get the analyzer updated (and tested).
7 years, 3 months ago (2013-09-18 10:42:34 UTC) #9
Lasse Reichstein Nielsen
I'm communicating with the analyzer guys. It can be updated as a separate change - ...
7 years, 3 months ago (2013-09-18 11:48:14 UTC) #10
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-18 12:32:58 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r27613 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698