- Move VM specific helpers to the common dart:io patch file.

Review URL: https://codereview.chromium.org//812673009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42675 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
iposva@google.com 2015-01-07 23:02:06 +00:00
parent 7aa23bdf10
commit 8609239930
2 changed files with 8 additions and 7 deletions

View file

@ -6,3 +6,11 @@ patch class _IOCrypto {
/* 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;
}

View file

@ -411,10 +411,3 @@ class _Timer implements Timer {
return new _Timer(milliSeconds, callback);
}
}
// 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;
}