OLD | NEW |
---|---|
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 // the kernel which implements a memory barrier. On older | 170 // the kernel which implements a memory barrier. On older |
171 // ARM architecture revisions (pre-v6) this may be implemented using | 171 // ARM architecture revisions (pre-v6) this may be implemented using |
172 // a syscall. This address is stable, and in active use (hard coded) | 172 // a syscall. This address is stable, and in active use (hard coded) |
173 // by at least glibc-2.7 and the Android C library. | 173 // by at least glibc-2.7 and the Android C library. |
174 typedef void (*LinuxKernelMemoryBarrierFunc)(void); | 174 typedef void (*LinuxKernelMemoryBarrierFunc)(void); |
175 LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) = | 175 LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) = |
176 (LinuxKernelMemoryBarrierFunc) 0xffff0fa0; | 176 (LinuxKernelMemoryBarrierFunc) 0xffff0fa0; |
177 #endif | 177 #endif |
178 | 178 |
179 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { | 179 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
180 #ifdef V8_TARGET_ARCH_ARM | 180 #if defined(V8_TARGET_ARCH_ARM) && defined(__arm__) // don't use on a simulator |
Søren Thygesen Gjesse
2010/05/25 06:36:13
Uppercase D, end comment with period.
| |
181 pLinuxKernelMemoryBarrier(); | 181 pLinuxKernelMemoryBarrier(); |
182 #else | 182 #else |
183 __asm__ __volatile__("" : : : "memory"); | 183 __asm__ __volatile__("" : : : "memory"); |
184 // An x86 store acts as a release barrier. | 184 // An x86 store acts as a release barrier. |
185 #endif | 185 #endif |
186 *ptr = value; | 186 *ptr = value; |
187 } | 187 } |
188 | 188 |
189 | 189 |
190 const char* OS::LocalTimezone(double time) { | 190 const char* OS::LocalTimezone(double time) { |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
852 | 852 |
853 // This sampler is no longer the active sampler. | 853 // This sampler is no longer the active sampler. |
854 active_sampler_ = NULL; | 854 active_sampler_ = NULL; |
855 active_ = false; | 855 active_ = false; |
856 } | 856 } |
857 | 857 |
858 | 858 |
859 #endif // ENABLE_LOGGING_AND_PROFILING | 859 #endif // ENABLE_LOGGING_AND_PROFILING |
860 | 860 |
861 } } // namespace v8::internal | 861 } } // namespace v8::internal |
OLD | NEW |