|
|
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.
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
|
Total messages: 10 (0 generated)
|