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

Side by Side Diff: runtime/lib/date.cc

Issue 509153003: New bigint implementation in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <time.h> 5 #include <time.h>
6 6
7 #include "vm/bootstrap_natives.h" 7 #include "vm/bootstrap_natives.h"
8 8
9 #include "vm/bigint_operations.h"
10 #include "vm/native_entry.h" 9 #include "vm/native_entry.h"
11 #include "vm/object.h" 10 #include "vm/object.h"
12 #include "vm/os.h" 11 #include "vm/os.h"
13 12
14 namespace dart { 13 namespace dart {
15 14
16 static int32_t kMaxAllowedSeconds = 2100000000; 15 static int32_t kMaxAllowedSeconds = 2100000000;
17 16
18 DEFINE_NATIVE_ENTRY(DateNatives_timeZoneName, 1) { 17 DEFINE_NATIVE_ENTRY(DateNatives_timeZoneName, 1) {
19 GET_NON_NULL_NATIVE_ARGUMENT( 18 GET_NON_NULL_NATIVE_ARGUMENT(
(...skipping 23 matching lines...) Expand all
43 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds(); 42 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds();
44 return Integer::New(adjustment); 43 return Integer::New(adjustment);
45 } 44 }
46 45
47 46
48 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMillis, 0) { 47 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMillis, 0) {
49 return Integer::New(OS::GetCurrentTimeMillis()); 48 return Integer::New(OS::GetCurrentTimeMillis());
50 } 49 }
51 50
52 } // namespace dart 51 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698