OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // ------------------------------------------------------------------- | 5 // ------------------------------------------------------------------- |
6 | 6 |
7 (function(global, utils) { | 7 (function(global, utils) { |
8 | 8 |
9 "use strict"; | 9 "use strict"; |
10 | 10 |
11 %CheckIsBootstrapping(); | 11 %CheckIsBootstrapping(); |
12 | 12 |
13 // ------------------------------------------------------------------- | 13 // ------------------------------------------------------------------- |
14 // Imports | 14 // Imports |
15 | 15 |
16 var GlobalDate = global.Date; | 16 var GlobalDate = global.Date; |
17 var GlobalObject = global.Object; | 17 var GlobalObject = global.Object; |
18 var InternalArray = utils.InternalArray; | 18 var InternalArray = utils.InternalArray; |
19 var IsFinite; | 19 var IsFinite; |
| 20 var MakeRangeError; |
20 var MathAbs; | 21 var MathAbs; |
21 var MathFloor; | 22 var MathFloor; |
22 var NaN = %GetRootNaN(); | 23 var NaN = %GetRootNaN(); |
23 | 24 |
24 utils.Import(function(from) { | 25 utils.Import(function(from) { |
25 IsFinite = from.IsFinite; | 26 IsFinite = from.IsFinite; |
| 27 MakeRangeError = from.MakeRangeError; |
26 MathAbs = from.MathAbs; | 28 MathAbs = from.MathAbs; |
27 MathFloor = from.MathFloor; | 29 MathFloor = from.MathFloor; |
28 }); | 30 }); |
29 | 31 |
30 // ------------------------------------------------------------------- | 32 // ------------------------------------------------------------------- |
31 | 33 |
32 // This file contains date support implemented in JavaScript. | 34 // This file contains date support implemented in JavaScript. |
33 | 35 |
34 var timezone_cache_time = NaN; | 36 var timezone_cache_time = NaN; |
35 var timezone_cache_timezone; | 37 var timezone_cache_timezone; |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 "toUTCString", DateToUTCString, | 875 "toUTCString", DateToUTCString, |
874 "getYear", DateGetYear, | 876 "getYear", DateGetYear, |
875 "setYear", DateSetYear, | 877 "setYear", DateSetYear, |
876 "toISOString", DateToISOString, | 878 "toISOString", DateToISOString, |
877 "toJSON", DateToJSON | 879 "toJSON", DateToJSON |
878 ]); | 880 ]); |
879 | 881 |
880 %InstallToContext(["create_date_fun", CreateDate]); | 882 %InstallToContext(["create_date_fun", CreateDate]); |
881 | 883 |
882 }) | 884 }) |
OLD | NEW |