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

Issue 1370793002: Improve the handling of inference for instance fields in the task model (Closed)

Created:
5 years, 2 months ago by Leaf
Modified:
5 years, 2 months ago
CC:
reviews_dartlang.org, vsm, Jennifer Messerly
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve the handling of inference for instance fields in the task model strong mode inference. This CL adds instance fields to the set of variables for which dependencies are computed, and re-resolves each instance field initializer using type information inferred for the static variables upon which it depends. This CL also stops static variables with existing type information from having their types overwritten. This CL ports over a number of the DDC inference tests, more remain to be ported. There is still at least one outstanding issue with instance variable inference, see #354 (and the two tests marked fail added in this CL). BUG= R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/9be2107f391dec2699da031159b819257cd68ab5

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -39 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 1 4 chunks +11 lines, -10 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 2 chunks +24 lines, -27 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 10 chunks +657 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Leaf
I'm think this may not be the right long term fix, but it addresses a ...
5 years, 2 months ago (2015-09-25 20:21:04 UTC) #2
Brian Wilkerson
LGTM With this change are we now duplicating work by re-resolving instance field initializers somewhere ...
5 years, 2 months ago (2015-09-25 20:50:17 UTC) #3
Leaf
On 2015/09/25 20:50:17, Brian Wilkerson wrote: > LGTM > > With this change are we ...
5 years, 2 months ago (2015-09-26 00:09:25 UTC) #4
Leaf
https://codereview.chromium.org/1370793002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/1370793002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode9675 pkg/analyzer/lib/src/generated/resolver.dart:9675: _addStaticVariables(node.fields.variables); On 2015/09/25 20:50:17, Brian Wilkerson wrote: > nit: ...
5 years, 2 months ago (2015-09-26 00:09:33 UTC) #5
Brian Wilkerson
LGTM
5 years, 2 months ago (2015-09-26 00:17:47 UTC) #6
Leaf
5 years, 2 months ago (2015-09-28 17:57:13 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:10001) manually as
9be2107f391dec2699da031159b819257cd68ab5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698