|
Make writes consistent across socket and file synchronous/asynchronus writes in terms of truncation semantics (reports an argument error if the list element contains a non byte value).
Remove Common_IsBuiltinList as it is not used anymore
Change synchronous file writes to use Dart_TypedDataAcquireData and
Dart_TypedDataReleaseData since the buffer object is always a Uint8List
instead of the more expensive Dart_ListGetAsBytes.
R=ajohnsen@google.com, iposva@google.com
Committed: https://code.google.com/p/dart/source/detail?r=24620
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+167 lines, -181 lines) |
Patch |
|
D |
runtime/bin/common.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
|
M |
runtime/bin/common_patch.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file.cc
|
View
|
1
2
3
|
2 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
|
M |
runtime/bin/io_impl_sources.gypi
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/io_natives.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/_internal/lib/io_patch.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/common.dart
|
View
|
1
2
3
|
2 chunks |
+4 lines, -46 lines |
0 comments
|
Download
|
|
M |
sdk/lib/io/file_impl.dart
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/file_typed_data_test.dart
|
View
|
1
2
3
|
9 chunks |
+140 lines, -47 lines |
0 comments
|
Download
|
|
M |
tests/standalone/io/raw_socket_typed_data_test.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/standalone/io/web_socket_typed_data_test.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|