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

Unified Diff: runtime/bin/eventhandler.h

Issue 908183002: Implement mac support for having multiple Dart_Port's registered on one OS socket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 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 | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.h
diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
index bdeb8129ba2dd70500291cefeae7247d36eac418..9ed872ffe11781493b77df569de7dda85717beaa 100644
--- a/runtime/bin/eventhandler.h
+++ b/runtime/bin/eventhandler.h
@@ -327,7 +327,6 @@ class DescriptorInfoSingleMixin : public DI {
virtual void ReturnTokens(Dart_Port port, int count) {
ASSERT(port_ == port);
- ASSERT(tokens_ >= 0);
if (!disable_tokens_) {
tokens_ += count;
}
@@ -548,7 +547,6 @@ class DescriptorInfoMultipleMixin : public DI {
PortEntry* pentry = reinterpret_cast<PortEntry*>(entry->value);
bool was_ready = pentry->IsReady();
- ASSERT(pentry->token_count >= 0);
if (!disable_tokens_) {
pentry->token_count += count;
}
« no previous file with comments | « no previous file | runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698