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

Issue 2961313002: Always store GlobalTypeInferenceElementData on the member context (Closed)

Created:
3 years, 5 months ago by Johnni Winther
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Always store GlobalTypeInferenceElementData on the member context R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/63f74d855f3ea59a97381880bf05d716b7955909

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -253 lines) Patch
M pkg/compiler/lib/src/dump_info.dart View 2 chunks +8 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/builder.dart View 1 30 chunks +44 lines, -56 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/inferrer_engine.dart View 7 chunks +10 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_nodes.dart View 15 chunks +18 lines, -65 lines 0 comments Download
M pkg/compiler/lib/src/types/types.dart View 6 chunks +32 lines, -99 lines 0 comments Download
M tests/compiler/dart2js/inference/inference_test_helper.dart View 1 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Johnni Winther
3 years, 5 months ago (2017-06-29 16:51:11 UTC) #2
Johnni Winther
https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferrer/inferrer_engine.dart File pkg/compiler/lib/src/inferrer/inferrer_engine.dart (left): https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferrer/inferrer_engine.dart#oldcode121 pkg/compiler/lib/src/inferrer/inferrer_engine.dart:121: GlobalTypeInferenceElementData _dataOf(AstElement element) => inTreeData It turned out that ...
3 years, 5 months ago (2017-06-29 17:00:28 UTC) #3
Siggi Cherem (dart-lang)
lgtm, just a question at the very end... https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferrer/builder.dart File pkg/compiler/lib/src/inferrer/builder.dart (right): https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferrer/builder.dart#newcode78 pkg/compiler/lib/src/inferrer/builder.dart:78: final ...
3 years, 5 months ago (2017-06-29 21:40:09 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as 63f74d855f3ea59a97381880bf05d716b7955909 (presubmit successful).
3 years, 5 months ago (2017-06-30 08:13:48 UTC) #6
Johnni Winther
3 years, 5 months ago (2017-06-30 08:14:50 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferr...
File pkg/compiler/lib/src/inferrer/builder.dart (right):

https://codereview.chromium.org/2961313002/diff/1/pkg/compiler/lib/src/inferr...
pkg/compiler/lib/src/inferrer/builder.dart:78: final
GlobalTypeInferenceElementData inTreeData;
On 2017/06/29 21:40:09, Siggi Cherem (dart-lang) wrote:
> rename to memberData like you did for the map in the other file? or simply
> `data`? (since the builder is per-member already?)

Renamed to [memberData]. The builder is created for members _and_ local
functions.

https://codereview.chromium.org/2961313002/diff/1/tests/compiler/dart2js/infe...
File tests/compiler/dart2js/inference/inference_test_helper.dart (right):

https://codereview.chromium.org/2961313002/diff/1/tests/compiler/dart2js/infe...
tests/compiler/dart2js/inference/inference_test_helper.dart:48: elementResult =
results.resultOfMember(localFunction.memberContext);
On 2017/06/29 21:40:09, Siggi Cherem (dart-lang) wrote:
> memberContext or callMethod?

They amount to the same but like using .callMethod to align it with to kernel
based solution (when it arrives)

Powered by Google App Engine
This is Rietveld 408576698