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

Issue 23050002: Handle switch with default case, and do/while loop better in the inferrer. (Closed)

Created:
7 years, 4 months ago by ngeoffray
Modified:
7 years, 4 months ago
Reviewers:
ahe, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Handle switch with default case, and do/while loop better in the inferrer. R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=26109

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -27 lines) Patch
M sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart View 1 5 chunks +85 lines, -22 lines 0 comments Download
M tests/compiler/dart2js/simple_inferrer_test.dart View 1 5 chunks +57 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
7 years, 4 months ago (2013-08-13 12:04:54 UTC) #1
ahe
LGTM! https://codereview.chromium.org/23050002/diff/1/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart File sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart (right): https://codereview.chromium.org/23050002/diff/1/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart#newcode227 sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart:227: void forEachLocalUntil(Node node, When I see a method ...
7 years, 4 months ago (2013-08-13 16:26:45 UTC) #2
sra1
https://chromiumcodereview.appspot.com/23050002/diff/1/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart File sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart (right): https://chromiumcodereview.appspot.com/23050002/diff/1/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart#newcode410 sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart:410: T otherType = elseBranch.locals[local]; Iterating over thenBranch and testing ...
7 years, 4 months ago (2013-08-14 03:59:54 UTC) #3
sra1
There is still a code quality regression in swarm compared to the buggy inference. Swarm ...
7 years, 4 months ago (2013-08-14 04:00:21 UTC) #4
ngeoffray
Thanks Peter and Stephen Good catch for the code quality regression Stephen. It was actually ...
7 years, 4 months ago (2013-08-14 07:53:46 UTC) #5
ngeoffray
7 years, 4 months ago (2013-08-14 08:10:14 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r26109 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698