| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |