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

Issue 9310082: Run all directory async operations on a separate thread using native ports (Closed)

Created:
8 years, 10 months ago by Søren Gjesse
Modified:
8 years, 10 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Run all directory async operations on a separate thread using native ports R=ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=4390

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments and updated to use CObject utilities #

Patch Set 3 : Ported all directory operations on Linux and Mac OS #

Patch Set 4 : Ported to Windows #

Total comments: 10

Patch Set 5 : Adderssed review comments from ager@ (and rebased) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -433 lines) Patch
M runtime/bin/builtin_natives.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/directory.h View 1 2 3 4 3 chunks +35 lines, -5 lines 0 comments Download
M runtime/bin/directory.cc View 1 2 3 4 2 chunks +177 lines, -32 lines 0 comments Download
M runtime/bin/directory_impl.dart View 1 2 3 4 6 chunks +75 lines, -226 lines 0 comments Download
M runtime/bin/directory_posix.cc View 1 2 3 4 10 chunks +46 lines, -81 lines 0 comments Download
M runtime/bin/directory_win.cc View 1 2 3 10 chunks +43 lines, -88 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
Der var den! This change depends on the following pending changes https://chromiumcodereview.appspot.com/9104041/ https://chromiumcodereview.appspot.com/9325022/
8 years, 10 months ago (2012-02-03 13:52:52 UTC) #1
Mads Ager (google)
Except for the verbosity of the CMessage construction this looks great! As we just discussed, ...
8 years, 10 months ago (2012-02-03 14:09:32 UTC) #2
Søren Gjesse
Addressed the comments and updated to use the CObject utilities from http://codereview.chromium.org/9403012/. I will update ...
8 years, 10 months ago (2012-02-15 15:09:39 UTC) #3
Søren Gjesse
Ported all operations. Changed issue description to match that. PTAL.
8 years, 10 months ago (2012-02-16 15:10:27 UTC) #4
Mads Ager (google)
LGTM http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.cc File runtime/bin/directory.cc (right): http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.cc#newcode237 runtime/bin/directory.cc:237: service_port = Dart_NewNativePort("DirectoryService", Are there two spaces after ...
8 years, 10 months ago (2012-02-20 12:56:38 UTC) #5
Søren Gjesse
8 years, 10 months ago (2012-02-21 11:23:24 UTC) #6
http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.cc
File runtime/bin/directory.cc (right):

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.cc#ne...
runtime/bin/directory.cc:237: service_port = 
Dart_NewNativePort("DirectoryService",
On 2012/02/20 12:56:38, Mads Ager wrote:
> Are there two spaces after the '=' here?

Yes, removed one.

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.h
File runtime/bin/directory.h (right):

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory.h#new...
runtime/bin/directory.h:53: DirectoryListing *listing);
On 2012/02/20 12:56:38, Mads Ager wrote:
> Placement of '*'

Done.

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory_impl....
File runtime/bin/directory_impl.dart (right):

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory_impl....
runtime/bin/directory_impl.dart:37: var handler =
On 2012/02/20 12:56:38, Mads Ager wrote:
> Two-space indentation please. Here and in all the ones below as well.

Done.

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory_posix.cc
File runtime/bin/directory_posix.cc (right):

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory_posix...
runtime/bin/directory_posix.cc:33: DirectoryListing *listing);
On 2012/02/20 12:56:38, Mads Ager wrote:
> Style: '*'
> 
> Here and multiple occurrences below.

Done.

http://codereview.chromium.org/9310082/diff/10002/runtime/bin/directory_posix...
runtime/bin/directory_posix.cc:88: // TODO(sgjesse): Pass flags to indicate
whether file responses are
On 2012/02/20 12:56:38, Mads Ager wrote:
> We should file a bug report for these TODOs to make sure that we track them.

Will do after committing.

Powered by Google App Engine
This is Rietveld 408576698