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 // 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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 #pragma warning(pop) | 1326 #pragma warning(pop) |
1327 | 1327 |
1328 #else // __MINGW32__ | 1328 #else // __MINGW32__ |
1329 void OS::LogSharedLibraryAddresses() { } | 1329 void OS::LogSharedLibraryAddresses() { } |
1330 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; } | 1330 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; } |
1331 #endif // __MINGW32__ | 1331 #endif // __MINGW32__ |
1332 | 1332 |
1333 | 1333 |
1334 double OS::nan_value() { | 1334 double OS::nan_value() { |
1335 #ifdef _MSC_VER | 1335 #ifdef _MSC_VER |
1336 static const __int64 nanval = 0xfff8000000000000; | 1336 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits |
| 1337 // in mask set, so value equals mask. |
| 1338 static const __int64 nanval = kQuietNaNMask; |
1337 return *reinterpret_cast<const double*>(&nanval); | 1339 return *reinterpret_cast<const double*>(&nanval); |
1338 #else // _MSC_VER | 1340 #else // _MSC_VER |
1339 return NAN; | 1341 return NAN; |
1340 #endif // _MSC_VER | 1342 #endif // _MSC_VER |
1341 } | 1343 } |
1342 | 1344 |
1343 | 1345 |
1344 int OS::ActivationFrameAlignment() { | 1346 int OS::ActivationFrameAlignment() { |
1345 #ifdef _WIN64 | 1347 #ifdef _WIN64 |
1346 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. | 1348 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1905 | 1907 |
1906 // Release the thread handles | 1908 // Release the thread handles |
1907 CloseHandle(data_->sampler_thread_); | 1909 CloseHandle(data_->sampler_thread_); |
1908 CloseHandle(data_->profiled_thread_); | 1910 CloseHandle(data_->profiled_thread_); |
1909 } | 1911 } |
1910 | 1912 |
1911 | 1913 |
1912 #endif // ENABLE_LOGGING_AND_PROFILING | 1914 #endif // ENABLE_LOGGING_AND_PROFILING |
1913 | 1915 |
1914 } } // namespace v8::internal | 1916 } } // namespace v8::internal |
OLD | NEW |