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

Side by Side Diff: src/base/platform/platform-win32.cc

Issue 864803002: Remove deprecated v8::base::OS::nan_value(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix invalid test expectation. Created 5 years, 11 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 | « src/base/platform/platform-posix.cc ('k') | src/compiler/js-graph.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 // 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 // Platform-specific code for Win32. 5 // Platform-specific code for Win32.
6 6
7 // Secure API functions are not available using MinGW with msvcrt.dll 7 // Secure API functions are not available using MinGW with msvcrt.dll
8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to 8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to
9 // disable definition of secure API functions in standard headers that 9 // disable definition of secure API functions in standard headers that
10 // would conflict with our own implementation. 10 // would conflict with our own implementation.
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 #else // __MINGW32__ 1155 #else // __MINGW32__
1156 std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { 1156 std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
1157 return std::vector<OS::SharedLibraryAddress>(); 1157 return std::vector<OS::SharedLibraryAddress>();
1158 } 1158 }
1159 1159
1160 1160
1161 void OS::SignalCodeMovingGC() { } 1161 void OS::SignalCodeMovingGC() { }
1162 #endif // __MINGW32__ 1162 #endif // __MINGW32__
1163 1163
1164 1164
1165 double OS::nan_value() {
1166 return std::numeric_limits<double>::quiet_NaN();
1167 }
1168
1169
1170 int OS::ActivationFrameAlignment() { 1165 int OS::ActivationFrameAlignment() {
1171 #ifdef _WIN64 1166 #ifdef _WIN64
1172 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. 1167 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned.
1173 #elif defined(__MINGW32__) 1168 #elif defined(__MINGW32__)
1174 // With gcc 4.4 the tree vectorization optimizer can generate code 1169 // With gcc 4.4 the tree vectorization optimizer can generate code
1175 // that requires 16 byte alignment such as movdqa on x86. 1170 // that requires 16 byte alignment such as movdqa on x86.
1176 return 16; 1171 return 16;
1177 #else 1172 #else
1178 return 8; // Floating-point math runs faster with 8-byte alignment. 1173 return 8; // Floating-point math runs faster with 8-byte alignment.
1179 #endif 1174 #endif
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 DCHECK(result); 1376 DCHECK(result);
1382 } 1377 }
1383 1378
1384 1379
1385 1380
1386 void Thread::YieldCPU() { 1381 void Thread::YieldCPU() {
1387 Sleep(0); 1382 Sleep(0);
1388 } 1383 }
1389 1384
1390 } } // namespace v8::base 1385 } } // namespace v8::base
OLDNEW
« no previous file with comments | « src/base/platform/platform-posix.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698