| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 | 73 |
| 74 int OS::ActivationFrameAlignment() { | 74 int OS::ActivationFrameAlignment() { |
| 75 // With gcc 4.4 the tree vectorization optimizer can generate code | 75 // With gcc 4.4 the tree vectorization optimizer can generate code |
| 76 // that requires 16 byte alignment such as movdqa on x86. | 76 // that requires 16 byte alignment such as movdqa on x86. |
| 77 return 16; | 77 return 16; |
| 78 } | 78 } |
| 79 | 79 |
| 80 | 80 |
| 81 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { | 81 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
| 82 __asm__ __volatile__("" : : : "memory"); | 82 ATOMICOPS_COMPILER_BARRIER(); |
| 83 // An x86 store acts as a release barrier. | 83 // An x86 store acts as a release barrier. |
| 84 *ptr = value; | 84 *ptr = value; |
| 85 } | 85 } |
| 86 | 86 |
| 87 const char* OS::LocalTimezone(double time) { | 87 const char* OS::LocalTimezone(double time) { |
| 88 if (isnan(time)) return ""; | 88 if (isnan(time)) return ""; |
| 89 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 89 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| 90 struct tm* t = localtime(&tv); | 90 struct tm* t = localtime(&tv); |
| 91 if (NULL == t) return ""; | 91 if (NULL == t) return ""; |
| 92 return tzname[0]; // The location of the timezone string on Cygwin. | 92 return tzname[0]; // The location of the timezone string on Cygwin. |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 776 |
| 777 | 777 |
| 778 void Sampler::Stop() { | 778 void Sampler::Stop() { |
| 779 ASSERT(IsActive()); | 779 ASSERT(IsActive()); |
| 780 SamplerThread::RemoveActiveSampler(this); | 780 SamplerThread::RemoveActiveSampler(this); |
| 781 SetActive(false); | 781 SetActive(false); |
| 782 } | 782 } |
| 783 | 783 |
| 784 | 784 |
| 785 } } // namespace v8::internal | 785 } } // namespace v8::internal |
| OLD | NEW |