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

Unified Diff: runtime/bin/common_patch.dart

Issue 812673009: - Move VM specific helpers to the common dart:io patch file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/common_patch.dart
===================================================================
--- runtime/bin/common_patch.dart (revision 42671)
+++ runtime/bin/common_patch.dart (working copy)
@@ -6,3 +6,11 @@
/* patch */ static Uint8List getRandomBytes(int count)
native "Crypto_GetRandomBytes";
}
+
+
+// Provide a closure which will allocate a Timer object to be able to hook
+// up the Timer interface in dart:isolate with the implementation here.
+_getTimerFactoryClosure() {
+ runTimerClosure = _Timer._handleTimeout;
+ return _Timer._factory;
+}
« no previous file with comments | « no previous file | sdk/lib/io/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698