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

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed)

Created:
7 years, 8 months ago by vsm
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move to new dart:typeddata types Mads: if you land this, please rerun go.sh from tools/dom/scripts to regenerate html_dart2js.dart. I didn't include it here to make this patchable. Stephen: I still need to run the perf tests we talked about to sanity check. Committed: https://code.google.com/p/dart/source/detail?r=21789

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Total comments: 1

Patch Set 3 : Use sra's suggested pattern #

Total comments: 1

Patch Set 4 : Rebase to r21786 #

Patch Set 5 : Revert generated files for html lib #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2734 lines, -356 lines) Patch
M sdk/lib/_internal/compiler/implementation/native_handler.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/html_common/conversions.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/html/html_common/html_common_dart2js.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/svg/dart2js/svg_dart2js.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 6 chunks +6 lines, -6 lines 0 comments Download
A sdk/lib/typeddata/dart2js/typeddata_dart2js.dart View 1 2 3 1 chunk +2374 lines, -0 lines 2 comments Download
M sdk/lib/web_audio/dart2js/web_audio_dart2js.dart View 7 chunks +12 lines, -11 lines 0 comments Download
M sdk/lib/web_audio/dartium/web_audio_dartium.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/web_gl/dart2js/web_gl_dart2js.dart View 21 chunks +28 lines, -27 lines 0 comments Download
M sdk/lib/web_gl/dartium/web_gl_dartium.dart View 5 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/web_sql/dart2js/web_sql_dart2js.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/web_sql/dartium/web_sql_dartium.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/blob_constructor_test.dart View 2 chunks +2 lines, -1 line 0 comments Download
M tests/html/crypto_test.dart View 3 chunks +3 lines, -2 lines 0 comments Download
M tests/html/html.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/html/postmessage_structured_test.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M tests/html/transferables_test.dart View 2 chunks +5 lines, -4 lines 0 comments Download
M tests/html/typed_arrays_1_test.dart View 3 chunks +8 lines, -4 lines 0 comments Download
M tests/html/typed_arrays_2_test.dart View 3 chunks +15 lines, -15 lines 0 comments Download
M tests/html/typed_arrays_3_test.dart View 2 chunks +9 lines, -8 lines 0 comments Download
M tests/html/typed_arrays_4_test.dart View 3 chunks +3 lines, -2 lines 0 comments Download
M tests/html/typed_arrays_5_test.dart View 2 chunks +6 lines, -5 lines 0 comments Download
M tests/html/typed_arrays_arraybuffer_test.dart View 2 chunks +16 lines, -18 lines 0 comments Download
M tests/html/typed_arrays_dataview_test.dart View 4 chunks +16 lines, -15 lines 0 comments Download
M tests/html/typed_arrays_range_checks_test.dart View 3 chunks +15 lines, -14 lines 0 comments Download
M tests/html/url_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M tests/html/utils.dart View 2 chunks +13 lines, -12 lines 0 comments Download
M tests/html/xhr_test.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M tools/dom/idl/dart/dart.idl View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M tools/dom/scripts/generator.py View 1 2 3 8 chunks +20 lines, -43 lines 0 comments Download
M tools/dom/scripts/htmldartgenerator.py View 2 3 chunks +5 lines, -2 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 5 chunks +24 lines, -4 lines 0 comments Download
M tools/dom/scripts/systemhtml.py View 4 chunks +10 lines, -4 lines 0 comments Download
M tools/dom/scripts/systemnative.py View 1 3 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/src/dart2js_Conversions.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/src/dart2js_TypedArrayFactoryProvider.dart View 1 chunk +96 lines, -84 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 2 chunks +2 lines, -2 lines 0 comments Download
D tools/dom/templates/html/dart2js/impl_ArrayBuffer.darttemplate View 1 chunk +0 lines, -37 lines 0 comments Download
M tools/dom/templates/html/dart2js/indexed_db_dart2js.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/web_gl_dart2js.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/immutable_list_mixin.darttemplate View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
vsm
7 years, 8 months ago (2013-04-19 06:34:44 UTC) #1
vsm
https://codereview.chromium.org/14367012/diff/1/tests/html/url_test.dart File tests/html/url_test.dart (right): https://codereview.chromium.org/14367012/diff/1/tests/html/url_test.dart#newcode28 tests/html/url_test.dart:28: var dataArray = new Uint8List.view(arrayBuffer.buffer); Mads: note I had ...
7 years, 8 months ago (2013-04-19 06:36:28 UTC) #2
Mads Ager (google)
On 2013/04/19 06:36:28, vsm wrote: > https://codereview.chromium.org/14367012/diff/1/tests/html/url_test.dart > File tests/html/url_test.dart (right): > > https://codereview.chromium.org/14367012/diff/1/tests/html/url_test.dart#newcode28 > ...
7 years, 8 months ago (2013-04-19 08:19:40 UTC) #3
Mads Ager (google)
LGTM I have adapted dartium to this as well. I'm going for landing this Monday ...
7 years, 8 months ago (2013-04-19 13:04:26 UTC) #4
vsm
On 2013/04/19 13:04:26, Mads Ager wrote: > LGTM > > I have adapted dartium to ...
7 years, 8 months ago (2013-04-19 14:42:47 UTC) #5
blois
lgtm
7 years, 8 months ago (2013-04-19 16:24:22 UTC) #6
sra1
https://codereview.chromium.org/14367012/diff/5001/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart File sdk/lib/typeddata/dart2js/typeddata_dart2js.dart (right): https://codereview.chromium.org/14367012/diff/5001/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart#newcode103 sdk/lib/typeddata/dart2js/typeddata_dart2js.dart:103: int getInt16(int byteOffset, [Endianness endian=Endianness.BIG_ENDIAN]) => JS('num', '#.getInt16(#, #)', ...
7 years, 8 months ago (2013-04-19 17:56:55 UTC) #7
vsm
On 2013/04/19 17:56:55, sra1 wrote: > https://codereview.chromium.org/14367012/diff/5001/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart > File sdk/lib/typeddata/dart2js/typeddata_dart2js.dart (right): > > https://codereview.chromium.org/14367012/diff/5001/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart#newcode103 > ...
7 years, 8 months ago (2013-04-19 20:08:48 UTC) #8
sra1
lgtm https://codereview.chromium.org/14367012/diff/8002/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart File sdk/lib/typeddata/dart2js/typeddata_dart2js.dart (right): https://codereview.chromium.org/14367012/diff/8002/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart#newcode100 sdk/lib/typeddata/dart2js/typeddata_dart2js.dart:100: double _getFloat32(int byteOffset, [bool littleEndian]) native; I'd keep ...
7 years, 8 months ago (2013-04-19 20:48:37 UTC) #9
vsm
Fixed this last issue and rebased to r21786. On 2013/04/19 20:48:37, sra1 wrote: > lgtm ...
7 years, 8 months ago (2013-04-22 05:46:57 UTC) #10
Mads Ager (google)
Committed patchset #5 manually as r21789.
7 years, 8 months ago (2013-04-22 08:23:20 UTC) #11
kasperl
7 years, 8 months ago (2013-04-23 11:38:32 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/14367012/diff/17001/sdk/lib/typeddata/dart2js...
File sdk/lib/typeddata/dart2js/typeddata_dart2js.dart (right):

https://codereview.chromium.org/14367012/diff/17001/sdk/lib/typeddata/dart2js...
sdk/lib/typeddata/dart2js/typeddata_dart2js.dart:236: num operator[](int index)
=> JS("num", "#[#]", this, index);
All the [] and []= operators seem to be missing bounds checks.

https://codereview.chromium.org/14367012/diff/17001/sdk/lib/typeddata/dart2js...
sdk/lib/typeddata/dart2js/typeddata_dart2js.dart:318: throw new
UnsupportedError("Cannot add to immutable List.");
This isn't an immutable list.

Powered by Google App Engine
This is Rietveld 408576698