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

Issue 14120008: Add special rules in the inferrer that some int operations return an int. (Closed)

Created:
7 years, 8 months ago by ngeoffray
Modified:
7 years, 8 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add special rules in the inferrer that some int operations return an int. Committed: https://code.google.com/p/dart/source/detail?r=21810

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -49 lines) Patch
M sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart View 1 4 chunks +38 lines, -1 line 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/simple_inferrer_test.dart View 1 6 chunks +74 lines, -48 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
I verified that this fixes: https://code.google.com/p/dart/issues/detail?id=9507.
7 years, 8 months ago (2013-04-22 11:58:24 UTC) #1
kasperl
https://codereview.chromium.org/14120008/diff/1/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart File sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (right): https://codereview.chromium.org/14120008/diff/1/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart#newcode908 sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart:908: if (!selector.isCall() && !selector.isOperator()) return null; How does this ...
7 years, 8 months ago (2013-04-22 12:11:24 UTC) #2
ngeoffray
Thanks Kasper. PTAL, I have incorporated your suggestion, and added a test for wrong calls ...
7 years, 8 months ago (2013-04-22 12:31:49 UTC) #3
kasperl
LGTM!
7 years, 8 months ago (2013-04-22 12:36:00 UTC) #4
ngeoffray
7 years, 8 months ago (2013-04-22 12:40:41 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r21810 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698