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

Issue 18115002: Make writes consistent across socket and file synchronous/asynchronus writes in terms of truncation… (Closed)

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

Description

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

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

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

Messages

Total messages: 6 (0 generated)
siva
7 years, 5 months ago (2013-06-27 18:23:35 UTC) #1
Anders Johnsen
LGTM. What was the motivation for this change? https://codereview.chromium.org/18115002/diff/9002/tests/standalone/io/file_test.dart File tests/standalone/io/file_test.dart (left): https://codereview.chromium.org/18115002/diff/9002/tests/standalone/io/file_test.dart#oldcode532 tests/standalone/io/file_test.dart:532: openedFile.writeFrom([260], ...
7 years, 5 months ago (2013-06-28 05:21:48 UTC) #2
siva
This change essentially started with trying to eliminate all uses of Dart_GetClass in the embedder ...
7 years, 5 months ago (2013-06-28 18:44:56 UTC) #3
Ivan Posva
LGTM with comment about truncation. -Ivan https://codereview.chromium.org/18115002/diff/9002/sdk/lib/io/common.dart File sdk/lib/io/common.dart (right): https://codereview.chromium.org/18115002/diff/9002/sdk/lib/io/common.dart#newcode114 sdk/lib/io/common.dart:114: value < 0 ...
7 years, 5 months ago (2013-06-28 23:10:13 UTC) #4
siva
https://codereview.chromium.org/18115002/diff/9002/sdk/lib/io/common.dart File sdk/lib/io/common.dart (right): https://codereview.chromium.org/18115002/diff/9002/sdk/lib/io/common.dart#newcode114 sdk/lib/io/common.dart:114: value < 0 || 255 < value) { I ...
7 years, 5 months ago (2013-06-29 18:19:01 UTC) #5
siva
7 years, 5 months ago (2013-06-29 18:19:39 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 manually as r24620 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698