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

Issue 8431027: Some Linux and Mac OS event handler refactoring (Closed)

Created:
9 years, 1 month ago by Søren Gjesse
Modified:
9 years, 1 month ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Some Linux and Mac OS event handler refactoring This moved some of the handling of the data on a socket to a socket data object. This is a step in preparation for another change where more state will be stored on socket data object. This is also a step in moving from an array of socket data objects indexed by the file descriptor to a hash map of socket data objects. R=ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1001

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review comments from ager£ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -151 lines) Patch
M runtime/bin/eventhandler.h View 2 chunks +11 lines, -11 lines 0 comments Download
M runtime/bin/eventhandler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/eventhandler_linux.h View 1 3 chunks +21 lines, -12 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 6 chunks +56 lines, -58 lines 0 comments Download
M runtime/bin/eventhandler_macos.h View 1 3 chunks +21 lines, -12 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 6 chunks +55 lines, -57 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Gjesse
The Linux and Mac OS changes are identical.
9 years, 1 month ago (2011-11-01 08:40:52 UTC) #1
Mads Ager (google)
LGTM Same comments apply to Mac. http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux.cc File runtime/bin/eventhandler_linux.cc (right): http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux.cc#newcode50 runtime/bin/eventhandler_linux.cc:50: port_map_entries_ = 0; ...
9 years, 1 month ago (2011-11-01 09:10:23 UTC) #2
Søren Gjesse
9 years, 1 month ago (2011-11-01 11:34:21 UTC) #3
http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux.cc
File runtime/bin/eventhandler_linux.cc (right):

http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux....
runtime/bin/eventhandler_linux.cc:50: port_map_entries_ = 0;
On 2011/11/01 09:10:23, Mads Ager wrote:
> Should we either keep the name PortData or call these socket_map_entries_,
etc.

Done.

http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux....
runtime/bin/eventhandler_linux.cc:53: sizeof(SocketData)));
On 2011/11/01 09:10:23, Mads Ager wrote:
> funky indentation.

Done.

http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux.h
File runtime/bin/eventhandler_linux.h (right):

http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux....
runtime/bin/eventhandler_linux.h:26: 
On 2011/11/01 09:10:23, Mads Ager wrote:
> Remove one newline?

Done.

http://codereview.chromium.org/8431027/diff/1/runtime/bin/eventhandler_linux....
runtime/bin/eventhandler_linux.h:59: SocketData* port_map_;
On 2011/11/01 09:10:23, Mads Ager wrote:
> Should this be socket_map_ instead of port_map_?

Done.

Powered by Google App Engine
This is Rietveld 408576698