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

Issue 182373002: Fix bad type-inferrence for logical expressions. (Closed)

Created:
6 years, 10 months ago by floitsch
Modified:
6 years, 9 months ago
Reviewers:
ngeoffray, sra1, herhut
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : Merged with issue 181783006. #

Patch Set 3 : Address comments. #

Patch Set 4 : Don't null out isChecks. #

Patch Set 5 : Use lhs of &&. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -6 lines) Patch
M sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart View 1 2 3 4 2 chunks +11 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/simple_inferrer_and_or_test.dart View 1 2 3 3 chunks +42 lines, -0 lines 0 comments Download
A tests/language/logical_expression2_test.dart View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A tests/language/logical_expression3_test.dart View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A tests/language/logical_expression4_test.dart View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A tests/language/logical_expression5_test.dart View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
floitsch
Another bug is fixed in a follow-up CL (https://codereview.chromium.org/181783006/) I can merge the two, if ...
6 years, 10 months ago (2014-02-26 23:11:44 UTC) #1
sra1
lgtm. I *think* it is correct, but this state-machine style of visitor programming makes my ...
6 years, 10 months ago (2014-02-27 03:12:55 UTC) #2
ngeoffray
LGTM https://codereview.chromium.org/182373002/diff/1/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart File sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (right): https://codereview.chromium.org/182373002/diff/1/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart#newcode867 sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart:867: isChecks = null; How about an abstraction: bool ...
6 years, 10 months ago (2014-02-27 10:33:12 UTC) #3
floitsch
Found same bug in !(e1 && e2). Rewrote (e1 && e2) so that this can't ...
6 years, 9 months ago (2014-02-27 16:07:08 UTC) #4
floitsch
I will commit now, but if you have more comments, I will address them in ...
6 years, 9 months ago (2014-02-27 16:44:01 UTC) #5
floitsch
Committed patchset #3 manually as r33120 (presubmit successful).
6 years, 9 months ago (2014-02-27 16:44:44 UTC) #6
floitsch
PTAL. I had to revert.
6 years, 9 months ago (2014-02-27 18:26:07 UTC) #7
floitsch
FYI: the version that was committed was Patch Set 3.
6 years, 9 months ago (2014-02-27 18:27:03 UTC) #8
herhut
On 2014/02/27 18:27:03, floitsch wrote: > FYI: the version that was committed was Patch Set ...
6 years, 9 months ago (2014-02-28 08:24:45 UTC) #9
floitsch
We want to use the isChecks from the lhs.
6 years, 9 months ago (2014-02-28 09:23:07 UTC) #10
herhut
On 2014/02/28 09:23:07, floitsch wrote: > We want to use the isChecks from the lhs. ...
6 years, 9 months ago (2014-02-28 10:17:01 UTC) #11
floitsch
6 years, 9 months ago (2014-02-28 10:19:21 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 manually as r33152 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698