| 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 #ifdef _MSC_VER | 1291 #ifdef _MSC_VER |
| 1292 static const __int64 nanval = 0xfff8000000000000; | 1292 static const __int64 nanval = 0xfff8000000000000; |
| 1293 return *reinterpret_cast<const double*>(&nanval); | 1293 return *reinterpret_cast<const double*>(&nanval); |
| 1294 #else // _MSC_VER | 1294 #else // _MSC_VER |
| 1295 return NAN; | 1295 return NAN; |
| 1296 #endif // _MSC_VER | 1296 #endif // _MSC_VER |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 | 1299 |
| 1300 int OS::ActivationFrameAlignment() { | 1300 int OS::ActivationFrameAlignment() { |
| 1301 // No constraint on Windows. | 1301 // Floating point code runs faster if the stack is 8-byte aligned. |
| 1302 return 0; | 1302 return 8; |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 | 1305 |
| 1306 bool VirtualMemory::IsReserved() { | 1306 bool VirtualMemory::IsReserved() { |
| 1307 return address_ != NULL; | 1307 return address_ != NULL; |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 | 1310 |
| 1311 VirtualMemory::VirtualMemory(size_t size) { | 1311 VirtualMemory::VirtualMemory(size_t size) { |
| 1312 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); | 1312 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 | 1823 |
| 1824 // Release the thread handles | 1824 // Release the thread handles |
| 1825 CloseHandle(data_->sampler_thread_); | 1825 CloseHandle(data_->sampler_thread_); |
| 1826 CloseHandle(data_->profiled_thread_); | 1826 CloseHandle(data_->profiled_thread_); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 | 1829 |
| 1830 #endif // ENABLE_LOGGING_AND_PROFILING | 1830 #endif // ENABLE_LOGGING_AND_PROFILING |
| 1831 | 1831 |
| 1832 } } // namespace v8::internal | 1832 } } // namespace v8::internal |
| OLD | NEW |