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

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

Issue 10834353: Reapply "Sharing of sources for corelib date implementation between VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix analyzer 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/coreimpl.dart ('k') | runtime/lib/date.dart » ('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 51de7cd3ea1fb423e6f1f5cf29b1b7a58d9a75e7..621cde9c6a794110b31654f706108d7ca8d25284 100644
--- a/lib/compiler/implementation/lib/coreimpl_patch.dart
+++ b/lib/compiler/implementation/lib/coreimpl_patch.dart
@@ -28,6 +28,13 @@ patch class DateImplementation {
Primitives.lazyAsJsDate(this);
}
+ patch static int _brokenDownDateToMillisecondsSinceEpoch(
+ int years, int month, int day, int hour, int minute, int second,
+ int millisecond, bool isUtc) {
+ return Primitives.valueFromDecomposedDate(
+ years, month, day, hour, minute, second, millisecond, isUtc);
+ }
+
patch String get timeZoneName() {
if (isUtc) return "UTC";
return Primitives.getTimeZoneName(this);
« no previous file with comments | « lib/compiler/implementation/lib/coreimpl.dart ('k') | runtime/lib/date.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698