| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 | 112 |
| 113 int OS::ActivationFrameAlignment() { | 113 int OS::ActivationFrameAlignment() { |
| 114 // With gcc 4.4 the tree vectorization optimizer can generate code | 114 // With gcc 4.4 the tree vectorization optimizer can generate code |
| 115 // that requires 16 byte alignment such as movdqa on x86. | 115 // that requires 16 byte alignment such as movdqa on x86. |
| 116 return 16; | 116 return 16; |
| 117 } | 117 } |
| 118 | 118 |
| 119 | 119 |
| 120 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { | 120 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
| 121 __asm__ __volatile__("" : : : "memory"); | 121 ATOMICOPS_COMPILER_BARRIER(); |
| 122 // An x86 store acts as a release barrier. | 122 // An x86 store acts as a release barrier. |
| 123 *ptr = value; | 123 *ptr = value; |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 const char* OS::LocalTimezone(double time) { | 127 const char* OS::LocalTimezone(double time) { |
| 128 if (isnan(time)) return ""; | 128 if (isnan(time)) return ""; |
| 129 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 129 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| 130 struct tm* t = localtime(&tv); | 130 struct tm* t = localtime(&tv); |
| 131 if (NULL == t) return ""; | 131 if (NULL == t) return ""; |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 975 |
| 976 | 976 |
| 977 void Sampler::Stop() { | 977 void Sampler::Stop() { |
| 978 ASSERT(IsActive()); | 978 ASSERT(IsActive()); |
| 979 SignalSender::RemoveActiveSampler(this); | 979 SignalSender::RemoveActiveSampler(this); |
| 980 SetActive(false); | 980 SetActive(false); |
| 981 } | 981 } |
| 982 | 982 |
| 983 | 983 |
| 984 } } // namespace v8::internal | 984 } } // namespace v8::internal |
| OLD | NEW |