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

Unified Diff: runtime/bin/eventhandler_win.cc

Issue 9335001: Fix Windows build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_win.cc
diff --git a/runtime/bin/eventhandler_win.cc b/runtime/bin/eventhandler_win.cc
index 7c04d00052b1f01214c87b6efbb4cd134021a377..25e284c7d4e2ddaa7826a540f193ebd64f337855 100644
--- a/runtime/bin/eventhandler_win.cc
+++ b/runtime/bin/eventhandler_win.cc
@@ -644,7 +644,7 @@ void EventHandlerImplementation::HandleInterrupt(InterruptMessage* msg) {
if ((msg->data & (1 << kInEvent)) != 0) {
if (handle->Available() > 0) {
int event_mask = (1 << kInEvent);
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(handle->port(), event_mask);
} else if (!handle->HasPendingRead() &&
!handle->IsClosedRead()) {
handle->IssueRead();
@@ -656,7 +656,7 @@ void EventHandlerImplementation::HandleInterrupt(InterruptMessage* msg) {
if ((msg->data & (1 << kOutEvent)) != 0) {
if (!handle->HasPendingWrite()) {
int event_mask = (1 << kOutEvent);
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(handle->port(), event_mask);
}
}
@@ -692,7 +692,7 @@ void EventHandlerImplementation::HandleAccept(ListenSocket* listen_socket,
if (!listen_socket->IsClosing()) {
int event_mask = 1 << kInEvent;
if ((listen_socket->mask() & event_mask) != 0) {
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(listen_socket->port(), event_mask);
}
}
@@ -705,7 +705,7 @@ void EventHandlerImplementation::HandleAccept(ListenSocket* listen_socket,
void EventHandlerImplementation::HandleClosed(Handle* handle) {
if (!handle->IsClosing()) {
int event_mask = 1 << kCloseEvent;
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(handle->port(), event_mask);
}
}
@@ -719,7 +719,7 @@ void EventHandlerImplementation::HandleRead(Handle* handle,
if (!handle->IsClosing()) {
int event_mask = 1 << kInEvent;
if ((handle->mask() & event_mask) != 0) {
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(handle->port(), event_mask);
}
}
} else {
@@ -743,7 +743,7 @@ void EventHandlerImplementation::HandleWrite(Handle* handle,
if (!handle->IsClosing()) {
int event_mask = 1 << kOutEvent;
if ((handle->mask() & event_mask) != 0) {
- DartUtils::PostInt32(port, event_mask);
+ DartUtils::PostInt32(handle->port(), event_mask);
}
}
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698