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

Issue 12929005: dart:typeddata for dart2js (Closed)

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

Description

dart:typeddata for dart2js This is still has a fair bit of cleanup to, but I wanted to let you guys know where I'm at. The APIs are close to, but not quite the same as the VM version yet. The fixed up html/typed_array tests pass in Dart2JS using the new dart:typeddata instead. Opens: - The dartium code 'generated' by this is unused. Probably it should be suppressed altogether? - No bounds checking. In fact, I'm surprised typed_arrays_range_check_test ever worked on Dartium - that test is kind of crazy. :-) - Still some minor API fixups (e.g., the ByteData constructors) to do. - typeddata tests under standalone are not passing. Will investigate. - I will leave the 'new' types: Uint64*, Int64*, Float32x4*, etc., for a later CL. Those will need to be handwritten, and possibly reworked if we want to generate efficient code. - Should we keep ByteBuffer.supported? TypedArrays are not available in IE 9.

Patch Set 1 #

Patch Set 2 : Revert status change #

Total comments: 31
Unified diffs Side-by-side diffs Delta from patch set Stats (+12292 lines, -12202 lines) Patch
M sdk/lib/_internal/compiler/implementation/native_handler.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 75 chunks +7219 lines, -9542 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 7 chunks +3 lines, -2455 lines 2 comments Download
M sdk/lib/html/html_common/conversions.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/html/html_common/html_common_dart2js.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/typeddata/dart2js/typeddata_dart2js.dart View 1 1 chunk +2347 lines, -0 lines 5 comments Download
A sdk/lib/typeddata/dartium/typeddata_dartium.dart View 1 1 chunk +2470 lines, -0 lines 4 comments Download
M sdk/lib/web_audio/dart2js/web_audio_dart2js.dart View 1 6 chunks +10 lines, -10 lines 1 comment Download
M tests/html/typed_arrays_1_test.dart View 1 2 chunks +10 lines, -7 lines 3 comments Download
M tests/html/typed_arrays_2_test.dart View 1 3 chunks +15 lines, -16 lines 2 comments Download
M tests/html/typed_arrays_3_test.dart View 1 2 chunks +6 lines, -6 lines 0 comments Download
M tests/html/typed_arrays_4_test.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M tests/html/typed_arrays_5_test.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M tests/html/typed_arrays_arraybuffer_test.dart View 1 1 chunk +7 lines, -7 lines 0 comments Download
M tests/html/typed_arrays_dataview_test.dart View 1 3 chunks +8 lines, -8 lines 0 comments Download
M tests/html/typed_arrays_range_checks_test.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/typed_data_test.dart View 1 6 chunks +5 lines, -11 lines 5 comments Download
M tools/dom/scripts/dartdomgenerator.py View 1 1 chunk +2 lines, -1 line 0 comments Download
M tools/dom/scripts/generator.py View 1 5 chunks +18 lines, -18 lines 2 comments Download
M tools/dom/scripts/htmldartgenerator.py View 1 1 chunk +2 lines, -2 lines 1 comment Download
M tools/dom/scripts/htmlrenamer.py View 1 4 chunks +25 lines, -2 lines 0 comments Download
M tools/dom/scripts/systemhtml.py View 1 2 chunks +5 lines, -0 lines 1 comment Download
M tools/dom/src/dart2js_TypedArrayFactoryProvider.dart View 1 1 chunk +84 lines, -84 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 2 chunks +2 lines, -2 lines 1 comment Download
M tools/dom/templates/html/dart2js/impl_ArrayBuffer.darttemplate View 1 2 chunks +5 lines, -5 lines 0 comments Download
A tools/dom/templates/html/dart2js/typeddata_dart2js.darttemplate View 1 1 chunk +20 lines, -0 lines 2 comments Download
A + tools/dom/templates/html/dartium/typeddata_dartium.darttemplate View 1 1 chunk +10 lines, -9 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
vsm
7 years, 9 months ago (2013-03-19 04:37:57 UTC) #1
Mads Ager (google)
Great progress. :-) I would have loved to patch this into my workspace but git ...
7 years, 9 months ago (2013-03-19 10:09:09 UTC) #2
Anton Muhin
neat! First round of comments. https://chromiumcodereview.appspot.com/12929005/diff/6005/sdk/lib/html/dartium/html_dartium.dart File sdk/lib/html/dartium/html_dartium.dart (left): https://chromiumcodereview.appspot.com/12929005/diff/6005/sdk/lib/html/dartium/html_dartium.dart#oldcode15767 sdk/lib/html/dartium/html_dartium.dart:15767: - _TypedArrayFactoryProvider.createInt32Array(length); shouldn't this ...
7 years, 9 months ago (2013-03-19 12:31:24 UTC) #3
Mads Ager (google)
https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/html/typed_arrays_1_test.dart File tests/html/typed_arrays_1_test.dart (right): https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/html/typed_arrays_1_test.dart#newcode35 tests/html/typed_arrays_1_test.dart:35: var a1 = new Uint8List.fromList([0,0,1,0x45]); On 2013/03/19 12:31:24, Anton ...
7 years, 9 months ago (2013-03-19 12:40:50 UTC) #4
Anton Muhin
https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/standalone/typed_data_test.dart File tests/standalone/typed_data_test.dart (right): https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/standalone/typed_data_test.dart#newcode32 tests/standalone/typed_data_test.dart:32: // Expect.isFalse(typed_data is Uint8List); It doesn't in sdk/lib/typeddata_base.dart nor ...
7 years, 9 months ago (2013-03-19 13:22:33 UTC) #5
Mads Ager (google)
https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/standalone/typed_data_test.dart File tests/standalone/typed_data_test.dart (right): https://chromiumcodereview.appspot.com/12929005/diff/6005/tests/standalone/typed_data_test.dart#newcode32 tests/standalone/typed_data_test.dart:32: // Expect.isFalse(typed_data is Uint8List); On 2013/03/19 13:22:34, Anton Muhin ...
7 years, 9 months ago (2013-03-19 13:27:37 UTC) #6
vsm
On 2013/03/19 10:09:09, Mads Ager wrote: > Great progress. :-) > > I would have ...
7 years, 9 months ago (2013-03-19 15:20:03 UTC) #7
blois
https://chromiumcodereview.appspot.com/12929005/diff/6005/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart File sdk/lib/typeddata/dart2js/typeddata_dart2js.dart (right): https://chromiumcodereview.appspot.com/12929005/diff/6005/sdk/lib/typeddata/dart2js/typeddata_dart2js.dart#newcode41 sdk/lib/typeddata/dart2js/typeddata_dart2js.dart:41: static bool get supported => JS('bool', 'typeof window.ArrayBuffer != ...
7 years, 9 months ago (2013-03-19 17:26:11 UTC) #8
vsm
Sorry, I didn't make much progress on this today. Here's a version of this CL ...
7 years, 9 months ago (2013-03-20 03:07:52 UTC) #9
Anton Muhin
7 years, 8 months ago (2013-04-25 12:20:35 UTC) #10
time to close?

Powered by Google App Engine
This is Rietveld 408576698