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

Unified Diff: lib/compiler/implementation/lib/coreimpl.dartp

Issue 10836237: Sharing of sources for corelib date implementation between VM and (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment out the patch keyword instead of type 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
Index: lib/compiler/implementation/lib/coreimpl.dartp
diff --git a/lib/compiler/implementation/lib/coreimpl.dartp b/lib/compiler/implementation/lib/coreimpl.dartp
index a906769f28eaa6e05966cafba8c1b68f10393791..da8aff799986059d0c83833e5b54b26ce13e251a 100644
--- a/lib/compiler/implementation/lib/coreimpl.dartp
+++ b/lib/compiler/implementation/lib/coreimpl.dartp
@@ -25,6 +25,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);

Powered by Google App Engine
This is Rietveld 408576698