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

Issue 12811010: - Introduce the notion of setter constraints in the type inferrer, where we record things like: fie… (Closed)

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

Description

- Introduce the notion of setter constraints in the type inferrer, where we record things like: field++, field += 42, field = other.field. Take these contraints into account when computing the type. - Compute the LUB when iterating over selectors, and fix a bug in how we handle native elements. Committed: https://code.google.com/p/dart/source/detail?r=20144

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -54 lines) Patch
M sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart View 1 5 chunks +5 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/types.dart View 1 7 chunks +12 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart View 1 20 chunks +148 lines, -49 lines 0 comments Download
M tests/compiler/dart2js/field_type_simple_inferer_test.dart View 1 2 chunks +32 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_native/field_type2_test.dart View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
7 years, 9 months ago (2013-03-15 17:19:32 UTC) #1
kasperl
LGTM. I think we should figure out how to generalize it a little bit to ...
7 years, 9 months ago (2013-03-18 08:32:44 UTC) #2
ngeoffray
Thanks Kasper. https://codereview.chromium.org/12811010/diff/2001/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/12811010/diff/2001/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart#newcode154 sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart:154: * A map of constraints on a ...
7 years, 9 months ago (2013-03-18 08:43:29 UTC) #3
ngeoffray
7 years, 9 months ago (2013-03-18 09:17:55 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r20144 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698