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

Issue 11315005: Fix for issue #6259: also look for subclasses when checking if a typed selector applies to an eleme… (Closed)

Created:
8 years, 1 month ago by ngeoffray
Modified:
8 years, 1 month ago
Reviewers:
erikcorry, ahe, sra1, kasperl
CC:
reviews_dartlang.org, vsm, sra1
Visibility:
Public.

Description

Fix for issue #6259: also look for subclasses when checking if a typed selector applies to an element. Committed: https://code.google.com/p/dart/source/detail?r=14208

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M lib/compiler/implementation/universe/universe.dart View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M lib/compiler/implementation/world.dart View 1 2 3 4 5 4 chunks +26 lines, -0 lines 0 comments Download
A tests/language/typed_selector_test.dart View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ngeoffray
8 years, 1 month ago (2012-10-26 11:09:02 UTC) #1
ahe
I'm worried about the compile-time overhead. How about we disable this optimization until we can ...
8 years, 1 month ago (2012-10-29 06:18:29 UTC) #2
ngeoffray
Thanks for the comment Peter, PTAL
8 years, 1 month ago (2012-10-29 13:04:42 UTC) #3
ahe
https://codereview.chromium.org/11315005/diff/5001/lib/compiler/implementation/universe/universe.dart File lib/compiler/implementation/universe/universe.dart (right): https://codereview.chromium.org/11315005/diff/5001/lib/compiler/implementation/universe/universe.dart#newcode532 lib/compiler/implementation/universe/universe.dart:532: bool hasOneSubclassThatImplements(ClassElement superClass) { superclass is one word. https://codereview.chromium.org/11315005/diff/5001/lib/compiler/implementation/universe/universe.dart#newcode536 ...
8 years, 1 month ago (2012-10-29 13:15:21 UTC) #4
ngeoffray
PTAL https://codereview.chromium.org/11315005/diff/5001/lib/compiler/implementation/universe/universe.dart File lib/compiler/implementation/universe/universe.dart (right): https://codereview.chromium.org/11315005/diff/5001/lib/compiler/implementation/universe/universe.dart#newcode532 lib/compiler/implementation/universe/universe.dart:532: bool hasOneSubclassThatImplements(ClassElement superClass) { On 2012/10/29 13:15:21, ahe ...
8 years, 1 month ago (2012-10-29 13:35:18 UTC) #5
sra1
https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/world.dart File lib/compiler/implementation/world.dart (right): https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/world.dart#newcode125 lib/compiler/implementation/world.dart:125: bool hasOneSubclassThatImplements(ClassElement superClass, Type type) { By 'One' do ...
8 years, 1 month ago (2012-10-29 13:46:10 UTC) #6
ngeoffray
https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/world.dart File lib/compiler/implementation/world.dart (right): https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/world.dart#newcode125 lib/compiler/implementation/world.dart:125: bool hasOneSubclassThatImplements(ClassElement superClass, Type type) { On 2012/10/29 13:46:10, ...
8 years, 1 month ago (2012-10-29 14:05:37 UTC) #7
ahe
LGTM https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/universe/universe.dart File lib/compiler/implementation/universe/universe.dart (right): https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementation/universe/universe.dart#newcode531 lib/compiler/implementation/universe/universe.dart:531: assert(compiler.phase == Compiler.PHASE_COMPILING); Perhaps this assertion should be ...
8 years, 1 month ago (2012-10-29 14:22:14 UTC) #8
ngeoffray
8 years, 1 month ago (2012-10-29 14:37:53 UTC) #9
https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementatio...
File lib/compiler/implementation/universe/universe.dart (right):

https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementatio...
lib/compiler/implementation/universe/universe.dart:531: assert(compiler.phase ==
Compiler.PHASE_COMPILING);
On 2012/10/29 14:22:14, ahe wrote:
> Perhaps this assertion should be the first line of this method.

Done.

https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementatio...
File lib/compiler/implementation/world.dart (right):

https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementatio...
lib/compiler/implementation/world.dart:124: // Returnw whether a subclass of
[superClass] implements [type].
On 2012/10/29 14:22:14, ahe wrote:
> // -> ///
> Returnw -> Return
> superclass is one word

Done.

https://codereview.chromium.org/11315005/diff/9001/lib/compiler/implementatio...
lib/compiler/implementation/world.dart:125: bool
hasOneSubclassThatImplements(ClassElement superClass, Type type) {
On 2012/10/29 14:22:14, ahe wrote:
> superclass is one word

Done.

Powered by Google App Engine
This is Rietveld 408576698