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

Unified Diff: runtime/bin/eventhandler.cc

Issue 150563005: Short-cut the call to Timer.run, to not go through standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | sdk/lib/io/timer_impl.dart » ('j') | sdk/lib/io/timer_impl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.cc
diff --git a/runtime/bin/eventhandler.cc b/runtime/bin/eventhandler.cc
index 0c5b76577675066ba92158d957cbd2a1fd11a993..90eddd09ef2d59b4fa456428c8383887320c9fa9 100644
--- a/runtime/bin/eventhandler.cc
+++ b/runtime/bin/eventhandler.cc
@@ -106,12 +106,7 @@ void FUNCTION_NAME(EventHandler_SendData)(Dart_NativeArguments args) {
UNREACHABLE();
}
int64_t data = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 2));
- if ((id == kTimerId) && (data == 0)) {
- // This is a 0-timer. Simply queue a 'null' on the port.
- DartUtils::PostNull(dart_port);
- } else {
- event_handler->SendData(id, dart_port, data);
- }
+ event_handler->SendData(id, dart_port, data);
}
} // namespace bin
« no previous file with comments | « no previous file | sdk/lib/io/timer_impl.dart » ('j') | sdk/lib/io/timer_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698