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

Unified Diff: runtime/lib/date_patch.dart

Issue 14784010: Third step towards loading core library scripts directly from the sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | runtime/tools/gen_library_src_paths.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/date_patch.dart
===================================================================
--- runtime/lib/date_patch.dart (revision 22398)
+++ runtime/lib/date_patch.dart (working copy)
@@ -5,6 +5,19 @@
// VM implementation of DateTime.
patch class DateTime {
+ // Natives.
+ // The natives have been moved up here to work around Issue 10401.
+ static int _getCurrentMs() native "DateNatives_currentTimeMillis";
+
+ static String _timeZoneNameForClampedSeconds(int secondsSinceEpoch)
+ native "DateNatives_timeZoneName";
+
+ static int _timeZoneOffsetInSecondsForClampedSeconds(int secondsSinceEpoch)
+ native "DateNatives_timeZoneOffsetInSeconds";
+
+ static int _localTimeZoneAdjustmentInSeconds()
+ native "DateNatives_localTimeZoneAdjustmentInSeconds";
+
/* patch */ DateTime._internal(int year,
int month,
int day,
@@ -310,16 +323,4 @@
int equivalentSeconds = _equivalentSeconds(millisecondsSinceEpoch);
return _timeZoneNameForClampedSeconds(equivalentSeconds);
}
-
- // Natives
- static int _getCurrentMs() native "DateNatives_currentTimeMillis";
-
- static String _timeZoneNameForClampedSeconds(int secondsSinceEpoch)
- native "DateNatives_timeZoneName";
-
- static int _timeZoneOffsetInSecondsForClampedSeconds(int secondsSinceEpoch)
- native "DateNatives_timeZoneOffsetInSeconds";
-
- static int _localTimeZoneAdjustmentInSeconds()
- native "DateNatives_localTimeZoneAdjustmentInSeconds";
}
« no previous file with comments | « no previous file | runtime/tools/gen_library_src_paths.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698