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

Issue 9264001: - Fix the return type of File.openSync. (Closed)

Created:
8 years, 11 months ago by Ivan Posva
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Mads Ager (google)
Visibility:
Public.

Description

- Fix the return type of File.openSync. - Ensure to always hand a ObjectArray to the native code. - Start making private methods private. Committed: https://code.google.com/p/dart/source/detail?r=3424

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M runtime/bin/file_impl.dart View 4 chunks +20 lines, -4 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
This cuts the time to write a 4MB from 20 seconds down to 99 ms. ...
8 years, 11 months ago (2012-01-19 02:39:15 UTC) #1
siva
lgtm
8 years, 11 months ago (2012-01-19 02:44:32 UTC) #2
Mads Ager (google)
LGTM except for the single inconsistent underscore. http://codereview.chromium.org/9264001/diff/1/runtime/bin/file_impl.dart File runtime/bin/file_impl.dart (right): http://codereview.chromium.org/9264001/diff/1/runtime/bin/file_impl.dart#newcode423 runtime/bin/file_impl.dart:423: static int ...
8 years, 11 months ago (2012-01-19 07:13:27 UTC) #3
Ivan Posva
8 years, 11 months ago (2012-01-20 21:55:06 UTC) #4
http://codereview.chromium.org/9264001/diff/1/runtime/bin/file_impl.dart
File runtime/bin/file_impl.dart (right):

http://codereview.chromium.org/9264001/diff/1/runtime/bin/file_impl.dart#newc...
runtime/bin/file_impl.dart:423: static int _writeList(int id, List<int> buffer,
int offset, int bytes) {
On 2012/01/19 07:13:27, Mads Ager wrote:
> You can't get to this member in any case from the outside because it is a
static
> member in a private class. You should not be able to get to _FileUtils and
> therefore you should not be able to call this.
> 
> I used to have underscores on all of these but I'm not sure it adds much? If
we
> want underscores could we please add them to all the members here?

The thing is that if somebody decides to make FileUtils a public class you need
to change all currently exported names to private. But we can fix this in
another cleanup round. Changing this example back to the way it was.

Powered by Google App Engine
This is Rietveld 408576698