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

Issue 1413613010: Normalize type masks to use the least upper instantiated subclass/type. (Closed)

Created:
5 years, 1 month ago by Johnni Winther
Modified:
5 years, 1 month ago
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 26

Patch Set 2 : Updated cf. comments. #

Patch Set 3 : Rebased #

Patch Set 4 : Fix try/poi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -298 lines) Patch
M pkg/compiler/lib/src/closure.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_mask_system.dart View 3 chunks +70 lines, -40 lines 0 comments Download
M pkg/compiler/lib/src/enqueue.dart View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart View 1 2 1 chunk +13 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/types/flat_type_mask.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/types/type_mask.dart View 1 4 chunks +39 lines, -19 lines 0 comments Download
M pkg/compiler/lib/src/universe/class_set.dart View 1 6 chunks +88 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/universe/function_set.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/universe/universe.dart View 5 chunks +0 lines, -27 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 1 7 chunks +79 lines, -26 lines 0 comments Download
M tests/compiler/dart2js/members_test.dart View 10 chunks +19 lines, -1 line 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js/type_combination_test.dart View 5 chunks +23 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/type_mask2_test.dart View 1 3 chunks +211 lines, -147 lines 0 comments Download
M tests/compiler/dart2js/union_type_test.dart View 1 chunk +20 lines, -13 lines 0 comments Download
M tests/try/poi/forget_element_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Johnni Winther
Main changes in universe/class_set.dart, world.dart, and types/type_mask.dart
5 years, 1 month ago (2015-11-03 12:20:25 UTC) #2
sigurdm
LGTM https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/ssa/builder.dart File pkg/compiler/lib/src/ssa/builder.dart (right): https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/ssa/builder.dart#newcode3250 pkg/compiler/lib/src/ssa/builder.dart:3250: new TypeMask.nonNullSubtype(closureClassElement, compiler.world); ? https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/ssa/builder.dart#newcode5081 pkg/compiler/lib/src/ssa/builder.dart:5081: return new ...
5 years, 1 month ago (2015-11-03 13:06:50 UTC) #3
Johnni Winther
@herhut: PTAL https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/enqueue.dart File pkg/compiler/lib/src/enqueue.dart (right): https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/enqueue.dart#newcode194 pkg/compiler/lib/src/enqueue.dart:194: if (!cls.isAbstract || isNative || mirrorUsage) { ...
5 years, 1 month ago (2015-11-03 13:20:02 UTC) #5
Siggi Cherem (dart-lang)
dbc https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart File pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart (right): https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart#newcode649 pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart:649: returnType = types.nonNullSubclass(cls); same here - why not ...
5 years, 1 month ago (2015-11-03 21:01:58 UTC) #7
herhut
Very nice! I am not sure about the asserts that disallow creating type masks for ...
5 years, 1 month ago (2015-11-04 10:42:20 UTC) #8
Johnni Winther
Committed patchset #2 (id:20001) manually as d3c68df8532fee63cd846fda7130d28c99c591df (presubmit successful).
5 years, 1 month ago (2015-11-05 09:54:29 UTC) #9
Johnni Winther
https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/enqueue.dart File pkg/compiler/lib/src/enqueue.dart (right): https://codereview.chromium.org/1413613010/diff/1/pkg/compiler/lib/src/enqueue.dart#newcode194 pkg/compiler/lib/src/enqueue.dart:194: if (!cls.isAbstract || isNative || mirrorUsage) { On 2015/11/03 ...
5 years, 1 month ago (2015-11-06 13:43:23 UTC) #10
Johnni Winther
5 years, 1 month ago (2015-11-06 14:37:23 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
7b458eb1d62fe2ef896ed60e0a463f95bf0b0890 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698