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

Issue 11348297: Widen big concrete types to dynamic. (Closed)

Created:
8 years ago by polux
Modified:
8 years ago
Reviewers:
karlklose, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Widen big concrete types to dynamic. Committed: https://code.google.com/p/dart/source/detail?r=16367

Patch Set 1 #

Total comments: 4

Patch Set 2 : Synced to head and got rid of static state #

Patch Set 3 : Cache constants. #

Total comments: 4

Patch Set 4 : Address Peter comments #

Patch Set 5 : Fix tests #

Patch Set 6 : Address Peter's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -92 lines) Patch
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart View 1 2 3 4 5 43 chunks +120 lines, -82 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/types.dart View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/cpa_inference_test.dart View 1 2 3 4 5 4 chunks +47 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
polux
Peter: I'm putting you as a reviewer as well in case you have time to ...
8 years ago (2012-11-29 13:51:01 UTC) #1
ahe
Could you think of a way to avoid static state? https://chromiumcodereview.appspot.com/11348297/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart File sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (right): https://chromiumcodereview.appspot.com/11348297/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart#newcode79 ...
8 years ago (2012-11-29 14:07:36 UTC) #2
karlklose
The concrete type are actually dependent types (on the dynamic type and the maximal size ...
8 years ago (2012-12-13 14:55:11 UTC) #3
polux
https://chromiumcodereview.appspot.com/11348297/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart File sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (right): https://chromiumcodereview.appspot.com/11348297/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart#newcode79 sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart:79: static int MAX_CONCRETE_TYPE_SIZE = 5; On 2012/11/29 14:07:36, ahe ...
8 years ago (2012-12-13 15:40:36 UTC) #4
ahe
LGTM, but I think you should try to see if you can extend the framework ...
8 years ago (2012-12-20 10:18:22 UTC) #5
polux
I've answered your toplevel suggestion in the corresponding comment in concrete_types_inferrer.dart. https://chromiumcodereview.appspot.com/11348297/diff/8001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): ...
8 years ago (2012-12-20 10:31:50 UTC) #6
polux
PTAL The tests were failing because TypesTask was still calling new Singleton(baseType) instead of inferrer.singleton(baseType). ...
8 years ago (2012-12-20 11:14:14 UTC) #7
ahe
I think it would be simpler and cleaner if you passed in an instance of ...
8 years ago (2012-12-20 12:26:21 UTC) #8
polux
On 2012/12/20 12:26:21, ahe wrote: > I think it would be simpler and cleaner if ...
8 years ago (2012-12-20 14:06:53 UTC) #9
ahe
8 years ago (2012-12-20 14:28:07 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698