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

Issue 17017003: Introduce an ElementTypeMask to recognize simple constraints like "the type of parameter foo is the… (Closed)

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

Description

Introduce an ElementTypeMask to recognize simple constraints like "the type of parameter foo is the type of parameter foo". R=kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=24186

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -173 lines) Patch
M sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart View 1 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/container_type_mask.dart View 1 4 chunks +12 lines, -63 lines 0 comments Download
A sdk/lib/_internal/compiler/implementation/types/element_type_mask.dart View 1 1 chunk +54 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
A + sdk/lib/_internal/compiler/implementation/types/forwarding_type_mask.dart View 1 chunk +47 lines, -81 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart View 1 2 chunks +5 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart View 1 10 chunks +40 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/type_mask.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/types.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/call_site_simple_type_inferer_test.dart View 1 2 chunks +6 lines, -7 lines 0 comments Download
M tests/compiler/dart2js/concrete_type_inference_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/simple_inferrer_test.dart View 1 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
This recovers the performance regression due to removing the backend inferrer.
7 years, 6 months ago (2013-06-18 13:06:30 UTC) #1
kasperl
LGTM. We should think about whether or not we want to keep inventing new type ...
7 years, 6 months ago (2013-06-19 08:45:01 UTC) #2
ngeoffray
Thanks Kasper. https://codereview.chromium.org/17017003/diff/4001/sdk/lib/_internal/compiler/implementation/types/element_type_mask.dart File sdk/lib/_internal/compiler/implementation/types/element_type_mask.dart (right): https://codereview.chromium.org/17017003/diff/4001/sdk/lib/_internal/compiler/implementation/types/element_type_mask.dart#newcode13 sdk/lib/_internal/compiler/implementation/types/element_type_mask.dart:13: final Function fetchForwardTo; On 2013/06/19 08:45:01, kasperl ...
7 years, 6 months ago (2013-06-19 13:42:55 UTC) #3
ngeoffray
Committed patchset #3 manually as r24186 (presubmit successful).
7 years, 6 months ago (2013-06-19 13:59:54 UTC) #4
ahe
7 years, 6 months ago (2013-06-24 07:47:56 UTC) #5
Message was sent while issue was closed.
This CL introduced a performance regression in dart2js compile-time compiling
itself.  With this CL, dart2js is 1.65 times slower at compiling itself.

I'll investigate how much of this is due to lack of hashCode implementations.

Powered by Google App Engine
This is Rietveld 408576698