OLD | NEW |
---|---|
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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1472 return *reinterpret_cast<const double*>(&nanval); | 1472 return *reinterpret_cast<const double*>(&nanval); |
1473 #else // _MSC_VER | 1473 #else // _MSC_VER |
1474 return NAN; | 1474 return NAN; |
1475 #endif // _MSC_VER | 1475 #endif // _MSC_VER |
1476 } | 1476 } |
1477 | 1477 |
1478 | 1478 |
1479 int OS::ActivationFrameAlignment() { | 1479 int OS::ActivationFrameAlignment() { |
1480 #ifdef _WIN64 | 1480 #ifdef _WIN64 |
1481 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. | 1481 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. |
1482 #else | 1482 #elif defined(__MINGW32__) |
1483 // With gcc 4.4 the tree vectorization optimizer can generate code | |
1484 // that requires 16 byte alignment such as movdqa on x86. | |
1485 return 16; | |
1486 #endif | |
Jakob Kummerow
2013/07/02 15:24:18
Let's use an #else here, and keep the #endif at th
| |
1483 return 8; // Floating-point math runs faster with 8-byte alignment. | 1487 return 8; // Floating-point math runs faster with 8-byte alignment. |
1484 #endif | |
1485 } | 1488 } |
1486 | 1489 |
1487 | 1490 |
1488 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } | 1491 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } |
1489 | 1492 |
1490 | 1493 |
1491 VirtualMemory::VirtualMemory(size_t size) | 1494 VirtualMemory::VirtualMemory(size_t size) |
1492 : address_(ReserveRegion(size)), size_(size) { } | 1495 : address_(ReserveRegion(size)), size_(size) { } |
1493 | 1496 |
1494 | 1497 |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1981 limit_mutex = CreateMutex(); | 1984 limit_mutex = CreateMutex(); |
1982 } | 1985 } |
1983 | 1986 |
1984 | 1987 |
1985 void OS::TearDown() { | 1988 void OS::TearDown() { |
1986 delete limit_mutex; | 1989 delete limit_mutex; |
1987 } | 1990 } |
1988 | 1991 |
1989 | 1992 |
1990 } } // namespace v8::internal | 1993 } } // namespace v8::internal |
OLD | NEW |