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 "use strict"; | 5 "use strict"; |
6 | 6 |
7 // This file relies on the fact that the following declarations have been made | 7 // This file relies on the fact that the following declarations have been made |
8 // in v8natives.js: | 8 // in v8natives.js: |
9 // var $isFinite = GlobalIsFinite; | 9 // var $isFinite = GlobalIsFinite; |
10 | 10 |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 } | 724 } |
725 | 725 |
726 | 726 |
727 var date_cache_version_holder; | 727 var date_cache_version_holder; |
728 var date_cache_version = NAN; | 728 var date_cache_version = NAN; |
729 | 729 |
730 | 730 |
731 function CheckDateCacheCurrent() { | 731 function CheckDateCacheCurrent() { |
732 if (!date_cache_version_holder) { | 732 if (!date_cache_version_holder) { |
733 date_cache_version_holder = %DateCacheVersion(); | 733 date_cache_version_holder = %DateCacheVersion(); |
| 734 if (!date_cache_version_holder) return; |
734 } | 735 } |
735 if (date_cache_version_holder[0] == date_cache_version) { | 736 if (date_cache_version_holder[0] == date_cache_version) { |
736 return; | 737 return; |
737 } | 738 } |
738 date_cache_version = date_cache_version_holder[0]; | 739 date_cache_version = date_cache_version_holder[0]; |
739 | 740 |
740 // Reset the timezone cache: | 741 // Reset the timezone cache: |
741 timezone_cache_time = NAN; | 742 timezone_cache_time = NAN; |
742 timezone_cache_timezone = UNDEFINED; | 743 timezone_cache_timezone = UNDEFINED; |
743 | 744 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 "toGMTString", DateToGMTString, | 818 "toGMTString", DateToGMTString, |
818 "toUTCString", DateToUTCString, | 819 "toUTCString", DateToUTCString, |
819 "getYear", DateGetYear, | 820 "getYear", DateGetYear, |
820 "setYear", DateSetYear, | 821 "setYear", DateSetYear, |
821 "toISOString", DateToISOString, | 822 "toISOString", DateToISOString, |
822 "toJSON", DateToJSON | 823 "toJSON", DateToJSON |
823 )); | 824 )); |
824 } | 825 } |
825 | 826 |
826 SetUpDate(); | 827 SetUpDate(); |
OLD | NEW |