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

Issue 10941047: Don't generate FooList if it behaves like List<Foo> exactly. (Closed)

Created:
8 years, 3 months ago by Emily Fortuna
Modified:
8 years, 2 months ago
Reviewers:
vsm, sra1, Sean Eagan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Don't generate FooList if it behaves like List<Foo> exactly. Committed: https://code.google.com/p/dart/source/detail?r=12799

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+819 lines, -1376 lines) Patch
M lib/html/dart2js/html_dart2js.dart View 77 chunks +26 lines, -331 lines 1 comment Download
M lib/html/dartium/html_dartium.dart View 295 chunks +728 lines, -1030 lines 0 comments Download
M lib/html/idl/dart/dart.idl View 1 2 2 chunks +1 line, -1 line 0 comments Download
M lib/html/scripts/generator.py View 1 2 3 4 4 chunks +49 lines, -3 lines 3 comments Download
M lib/html/scripts/systemdart2js.py View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M lib/html/scripts/systemhtml.py View 1 2 3 4 5 4 chunks +10 lines, -5 lines 2 comments Download
M lib/html/scripts/systemnative.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M lib/html/src/dart2js_Conversions.dart View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M lib/html/templates/immutable_list_mixin.darttemplate View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Emily Fortuna
I'm open to structural change suggestions for this code if you have them, so that ...
8 years, 3 months ago (2012-09-19 21:06:40 UTC) #1
Emily Fortuna
Just a little more background on this change. This changes types like FileList to now ...
8 years, 3 months ago (2012-09-19 21:08:47 UTC) #2
Emily Fortuna
PTAL
8 years, 3 months ago (2012-09-20 20:50:40 UTC) #3
Emily Fortuna
PTAL -- this change is only for immutable list-like interfaces that do not have any ...
8 years, 3 months ago (2012-09-20 20:51:36 UTC) #4
vsm
https://chromiumcodereview.appspot.com/10941047/diff/24001/lib/html/dart2js/html_dart2js.dart File lib/html/dart2js/html_dart2js.dart (right): https://chromiumcodereview.appspot.com/10941047/diff/24001/lib/html/dart2js/html_dart2js.dart#newcode18182 lib/html/dart2js/html_dart2js.dart:18182: +abstract class List<CSSRule> implements List<CSSRule> { This looks broken ...
8 years, 3 months ago (2012-09-21 15:17:33 UTC) #5
Emily Fortuna
PTAL. I had uploaded a bad version of the generated file last time. https://chromiumcodereview.appspot.com/10941047/diff/24001/lib/html/dart2js/html_dart2js.dart File ...
8 years, 3 months ago (2012-09-21 18:32:15 UTC) #6
vsm
Much better. :-) https://chromiumcodereview.appspot.com/10941047/diff/20002/lib/html/scripts/generator.py File lib/html/scripts/generator.py (right): https://chromiumcodereview.appspot.com/10941047/diff/20002/lib/html/scripts/generator.py#newcode947 lib/html/scripts/generator.py:947: nativified_classes = {} How about calling ...
8 years, 3 months ago (2012-09-21 22:43:12 UTC) #7
Emily Fortuna
https://chromiumcodereview.appspot.com/10941047/diff/20002/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://chromiumcodereview.appspot.com/10941047/diff/20002/lib/html/scripts/systemhtml.py#newcode461 lib/html/scripts/systemhtml.py:461: is_native_class = filename[:-len('.dart')] in nativified_classes.values() On 2012/09/21 22:43:12, vsm ...
8 years, 3 months ago (2012-09-22 00:13:52 UTC) #8
Emily Fortuna
PTAL. This time for real! :-)
8 years, 3 months ago (2012-09-24 19:28:30 UTC) #9
vsm
lgtm https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/systemhtml.py#newcode479 lib/html/scripts/systemhtml.py:479: if (not self._interface.id in _merged_html_interfaces and Can you ...
8 years, 3 months ago (2012-09-24 19:31:10 UTC) #10
Emily Fortuna
https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/systemhtml.py#newcode479 lib/html/scripts/systemhtml.py:479: if (not self._interface.id in _merged_html_interfaces and On 2012/09/24 19:31:10, ...
8 years, 3 months ago (2012-09-24 19:42:58 UTC) #11
Sean Eagan
https://codereview.chromium.org/10941047/diff/21004/lib/html/dart2js/html_dart2js.dart File lib/html/dart2js/html_dart2js.dart (right): https://codereview.chromium.org/10941047/diff/21004/lib/html/dart2js/html_dart2js.dart#newcode12754 lib/html/dart2js/html_dart2js.dart:12754: +typedef bool EntriesCallback(List<EntryArray> entries); List<Entry> ? https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/generator.py File lib/html/scripts/generator.py ...
8 years, 2 months ago (2012-09-24 20:38:33 UTC) #12
Emily Fortuna
8 years, 2 months ago (2012-09-24 21:18:34 UTC) #13
https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/generato...
File lib/html/scripts/generator.py (right):

https://codereview.chromium.org/10941047/diff/21004/lib/html/scripts/generato...
lib/html/scripts/generator.py:896: dart_type='List<EntryArraySync>',
custom_to_native=True,
On 2012/09/24 20:38:34, seaneagan1 wrote:
> List<EntrySync> ?

These got dropped accidentally in the move from htmlrenamer.py to generator.py
(See patchset 1 of this CL. A revised (fixed) version of this CL is now at
https://codereview.chromium.org/10957066)

Powered by Google App Engine
This is Rietveld 408576698