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

Side by Side Diff: src/platform-linux.cc

Issue 157543002: A64: Synchronize with r18581. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-macos.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #endif 109 #endif
110 #endif 110 #endif
111 #undef GCC_VERSION 111 #undef GCC_VERSION
112 } 112 }
113 113
114 #endif // def __arm__ 114 #endif // def __arm__
115 115
116 116
117 const char* OS::LocalTimezone(double time) { 117 const char* OS::LocalTimezone(double time) {
118 if (std::isnan(time)) return ""; 118 if (std::isnan(time)) return "";
119 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 119 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond));
120 struct tm* t = localtime(&tv); 120 struct tm* t = localtime(&tv);
121 if (NULL == t) return ""; 121 if (NULL == t) return "";
122 return t->tm_zone; 122 return t->tm_zone;
123 } 123 }
124 124
125 125
126 double OS::LocalTimeOffset() { 126 double OS::LocalTimeOffset() {
127 time_t tv = time(NULL); 127 time_t tv = time(NULL);
128 struct tm* t = localtime(&tv); 128 struct tm* t = localtime(&tv);
129 // tm_gmtoff includes any daylight savings offset, so subtract it. 129 // tm_gmtoff includes any daylight savings offset, so subtract it.
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { 436 bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
437 return munmap(base, size) == 0; 437 return munmap(base, size) == 0;
438 } 438 }
439 439
440 440
441 bool VirtualMemory::HasLazyCommits() { 441 bool VirtualMemory::HasLazyCommits() {
442 return true; 442 return true;
443 } 443 }
444 444
445 } } // namespace v8::internal 445 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698