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

Issue 11557010: Implement subtype checks on type arguments. (Closed)

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

Description

Implement subtype checks on type arguments. BUG=dartbug.com/5096 Committed: https://code.google.com/p/dart/source/detail?r=16116

Patch Set 1 #

Patch Set 2 : Minor edits. #

Patch Set 3 : Remove code dealing with string representations." #

Patch Set 4 : Update test expectations. #

Total comments: 35

Patch Set 5 : Addres comments. #

Total comments: 8

Patch Set 6 : Rebase #

Patch Set 7 : Address Kasper's comments. #

Total comments: 14

Patch Set 8 : Forgot a change to a comment. #

Total comments: 2

Patch Set 9 : Add comment. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -42 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 7 8 5 chunks +63 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 2 3 4 5 6 4 chunks +82 lines, -14 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 2 3 4 5 6 2 chunks +32 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/universe/universe.dart View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
karlklose
8 years ago (2012-12-12 11:51:31 UTC) #1
ngeoffray
Initial comments. https://codereview.chromium.org/11557010/diff/5001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/5001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode66 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:66: RuntimeTypeInformation get rti { I'd rather not ...
8 years ago (2012-12-12 12:09:11 UTC) #2
kasperl
Comments: https://codereview.chromium.org/11557010/diff/5001/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart File sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart (right): https://codereview.chromium.org/11557010/diff/5001/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart#newcode9 sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart:9: Set<ClassElement> operator[](ClassElement element); Does this have to be ...
8 years ago (2012-12-12 12:09:45 UTC) #3
karlklose
I changed how we identify classes we need to generate a holder for: it is ...
8 years ago (2012-12-12 14:50:47 UTC) #4
kasperl
LGTM but you should probably wait for Nicolas' comments. https://codereview.chromium.org/11557010/diff/12/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/12/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode774 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:774: ...
8 years ago (2012-12-13 09:48:55 UTC) #5
karlklose
Thanks for the review! https://codereview.chromium.org/11557010/diff/12/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/12/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode774 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:774: buffer.add("$holder = {builtin\$cls: '$name'"); On ...
8 years ago (2012-12-13 12:55:46 UTC) #6
ngeoffray
https://codereview.chromium.org/11557010/diff/15001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/15001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode778 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:778: buffer.add("$holder$_=$_{builtin\$cls:$_'$name'"); I think you can share the following code ...
8 years ago (2012-12-13 13:34:58 UTC) #7
karlklose
https://codereview.chromium.org/11557010/diff/15001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/15001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode778 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:778: buffer.add("$holder$_=$_{builtin\$cls:$_'$name'"); I want to generate the checks for the ...
8 years ago (2012-12-13 14:37:34 UTC) #8
ngeoffray
LGTM! https://codereview.chromium.org/11557010/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11557010/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode48 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:48: Set<ClassElement> instantiatedClasses; Please add a TODO(ngeoffray): to remove ...
8 years ago (2012-12-13 14:52:12 UTC) #9
karlklose
8 years ago (2012-12-13 14:56:45 UTC) #10
Thanks, Nicolas!

https://codereview.chromium.org/11557010/diff/12002/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right):

https://codereview.chromium.org/11557010/diff/12002/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:48:
Set<ClassElement> instantiatedClasses;
On 2012/12/13 14:52:12, ngeoffray wrote:
> Please add a TODO(ngeoffray): to remove this field.

Done.

Powered by Google App Engine
This is Rietveld 408576698