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

Side by Side Diff: src/date.js

Issue 984833003: Do not use eternal handles when creating a start-up snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | src/runtime/runtime-date.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-date.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698