| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 return 16; | 271 return 16; |
| 272 } | 272 } |
| 273 | 273 |
| 274 | 274 |
| 275 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { | 275 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
| 276 #if (defined(V8_TARGET_ARCH_ARM) && defined(__arm__)) || \ | 276 #if (defined(V8_TARGET_ARCH_ARM) && defined(__arm__)) || \ |
| 277 (defined(V8_TARGET_ARCH_MIPS) && defined(__mips__)) | 277 (defined(V8_TARGET_ARCH_MIPS) && defined(__mips__)) |
| 278 // Only use on ARM or MIPS hardware. | 278 // Only use on ARM or MIPS hardware. |
| 279 MemoryBarrier(); | 279 MemoryBarrier(); |
| 280 #else | 280 #else |
| 281 __asm__ __volatile__("" : : : "memory"); | 281 ATOMICOPS_COMPILER_BARRIER(); |
| 282 // An x86 store acts as a release barrier. | 282 // An x86 store acts as a release barrier. |
| 283 #endif | 283 #endif |
| 284 *ptr = value; | 284 *ptr = value; |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 const char* OS::LocalTimezone(double time) { | 288 const char* OS::LocalTimezone(double time) { |
| 289 if (isnan(time)) return ""; | 289 if (isnan(time)) return ""; |
| 290 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 290 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| 291 struct tm* t = localtime(&tv); | 291 struct tm* t = localtime(&tv); |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 | 1284 |
| 1285 | 1285 |
| 1286 void Sampler::Stop() { | 1286 void Sampler::Stop() { |
| 1287 ASSERT(IsActive()); | 1287 ASSERT(IsActive()); |
| 1288 SignalSender::RemoveActiveSampler(this); | 1288 SignalSender::RemoveActiveSampler(this); |
| 1289 SetActive(false); | 1289 SetActive(false); |
| 1290 } | 1290 } |
| 1291 | 1291 |
| 1292 | 1292 |
| 1293 } } // namespace v8::internal | 1293 } } // namespace v8::internal |
| OLD | NEW |