| 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();
|
| +}
|
|
|