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

Issue 2849363003: Fix Instantiation equivalence (Closed)

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

Description

Fix Instantiation equivalence Instantiations of abstract native classes need to be marked as Instantiation.ABSTRACTLY_INSTANTIATED. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/c3e28939b11b0c3351469daa1dc854e6b98eb3e9

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated cf. comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M pkg/compiler/lib/src/universe/element_world_builder.dart View 1 1 chunk +8 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/kernel/closed_world2_test.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
3 years, 7 months ago (2017-05-02 10:29:39 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2849363003/diff/1/pkg/compiler/lib/src/universe/element_world_builder.dart File pkg/compiler/lib/src/universe/element_world_builder.dart (right): https://codereview.chromium.org/2849363003/diff/1/pkg/compiler/lib/src/universe/element_world_builder.dart#newcode70 pkg/compiler/lib/src/universe/element_world_builder.dart:70: if (!cls.isAbstract || isNative) { minor nit, might ...
3 years, 7 months ago (2017-05-02 20:10:24 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as c3e28939b11b0c3351469daa1dc854e6b98eb3e9 (presubmit successful).
3 years, 7 months ago (2017-05-03 09:05:27 UTC) #5
Johnni Winther
3 years, 7 months ago (2017-05-03 09:06:52 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2849363003/diff/1/pkg/compiler/lib/src/univer...
File pkg/compiler/lib/src/universe/element_world_builder.dart (right):

https://codereview.chromium.org/2849363003/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/element_world_builder.dart:70: if (!cls.isAbstract
|| isNative) {
On 2017/05/02 20:10:24, Siggi Cherem (dart-lang) wrote:
> minor nit, might be a bit more readable to not duplicate 'isNative' here and
> below, and to move the declaration of kind here. For example:
> 
> 
> Instantiation kind =
>    isNative ? ABSTRACTLY : (isAbstract ? UNINSTANTIATED : DIRECTLY);
> 
> or
> Instantiation kind;
> if (isNative) {
>   kind = ABSTRACTLY;
> } else if (isAbstract) {
>   kind = UNINSTANTIATED;
> } else {
>   kind = DIRECTLY;
> }
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698