| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // variety of ASLR modes (PAE kernel, NX compat mode, etc). | 84 // variety of ASLR modes (PAE kernel, NX compat mode, etc). |
| 85 raw_addr &= 0x3ffff000; | 85 raw_addr &= 0x3ffff000; |
| 86 raw_addr += 0x20000000; | 86 raw_addr += 0x20000000; |
| 87 #endif | 87 #endif |
| 88 return reinterpret_cast<void*>(raw_addr); | 88 return reinterpret_cast<void*>(raw_addr); |
| 89 } | 89 } |
| 90 return NULL; | 90 return NULL; |
| 91 } | 91 } |
| 92 | 92 |
| 93 | 93 |
| 94 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
| 95 return 0; | |
| 96 } | |
| 97 | |
| 98 | |
| 99 int OS::ActivationFrameAlignment() { | 94 int OS::ActivationFrameAlignment() { |
| 100 // With gcc 4.4 the tree vectorization optimizer can generate code | 95 // With gcc 4.4 the tree vectorization optimizer can generate code |
| 101 // that requires 16 byte alignment such as movdqa on x86. | 96 // that requires 16 byte alignment such as movdqa on x86. |
| 102 return 16; | 97 return 16; |
| 103 } | 98 } |
| 104 | 99 |
| 105 | 100 |
| 106 const char* OS::LocalTimezone(double time) { | 101 const char* OS::LocalTimezone(double time) { |
| 107 if (std::isnan(time)) return ""; | 102 if (std::isnan(time)) return ""; |
| 108 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 103 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 limit_mutex = CreateMutex(); | 539 limit_mutex = CreateMutex(); |
| 545 } | 540 } |
| 546 | 541 |
| 547 | 542 |
| 548 void OS::TearDown() { | 543 void OS::TearDown() { |
| 549 delete limit_mutex; | 544 delete limit_mutex; |
| 550 } | 545 } |
| 551 | 546 |
| 552 | 547 |
| 553 } } // namespace v8::internal | 548 } } // namespace v8::internal |
| OLD | NEW |