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

Unified Diff: lib/compiler/implementation/lib/core_patch.dart

Issue 11273006: Move StopwatchImplementation from coreimpl to core as _StopwatchImpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | lib/compiler/implementation/lib/coreimpl_patch.dart » ('j') | lib/core/stopwatch.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/core_patch.dart
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
index d458e743d8f866a58c57cb43d4ffeef35782f96d..d3f8e432c4dc6c1fa0f2b46a19af1b6bfe8ced43 100644
--- a/lib/compiler/implementation/lib/core_patch.dart
+++ b/lib/compiler/implementation/lib/core_patch.dart
@@ -141,3 +141,10 @@ patch class _DateImpl {
patch int get weekday => Primitives.getWeekday(this);
}
+
+
+// Patch for Stopwatch implementation.
+patch class _StopwatchImpl {
+ patch static int _frequency() => 1000;
+ patch static int _now() => Primitives.dateNow();
+}
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/coreimpl_patch.dart » ('j') | lib/core/stopwatch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698