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

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

Issue 10831327: Update stopwatch to use patching to share sources instead of exposing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « lib/compiler/implementation/lib/core.dart ('k') | runtime/lib/clock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/coreimpl_patch.dart
diff --git a/lib/compiler/implementation/lib/coreimpl_patch.dart b/lib/compiler/implementation/lib/coreimpl_patch.dart
index a906769f28eaa6e05966cafba8c1b68f10393791..51de7cd3ea1fb423e6f1f5cf29b1b7a58d9a75e7 100644
--- a/lib/compiler/implementation/lib/coreimpl_patch.dart
+++ b/lib/compiler/implementation/lib/coreimpl_patch.dart
@@ -2,8 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Patch file for dart:core's Date class.
+// Patch file for dart:core classes.
+// Patch for Date implementation.
+// TODO(ager): Split out into date_patch.dart and allow #source
+// in patch files?
patch class DateImplementation {
patch DateImplementation(int years,
[int month = 1,
@@ -51,3 +54,12 @@ patch class DateImplementation {
patch int get weekday() => Primitives.getWeekday(this);
}
+
+
+// Patch for Stopwatch implementation.
+// TODO(ager): Split out into stopwatch_patch.dart and allow #source
+// in patch files?
+patch class StopwatchImplementation {
+ patch static int _frequency() => 1000;
+ patch static int _now() => Primitives.dateNow();
+}
« no previous file with comments | « lib/compiler/implementation/lib/core.dart ('k') | runtime/lib/clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698