| Index: src/atomicops_internals_x86_gcc.cc
|
| diff --git a/src/atomicops_internals_x86_gcc.cc b/src/atomicops_internals_x86_gcc.cc
|
| index a5725647666dc9b94ddbb28c1fc91c6a4f5aa113..181c2024788f86092821ff09b0543588ad217cc6 100644
|
| --- a/src/atomicops_internals_x86_gcc.cc
|
| +++ b/src/atomicops_internals_x86_gcc.cc
|
| @@ -57,6 +57,9 @@
|
|
|
| #if defined(cpuid) // initialize the struct only on x86
|
|
|
| +namespace v8 {
|
| +namespace internal {
|
| +
|
| // Set the flags so that code will run correctly and conservatively, so even
|
| // if we haven't been initialized yet, we're probably single threaded, and our
|
| // default values should hopefully be pretty safe.
|
| @@ -65,8 +68,14 @@ struct AtomicOps_x86CPUFeatureStruct AtomicOps_Internalx86CPUFeatures = {
|
| false, // no SSE2
|
| };
|
|
|
| +} } // namespace v8::internal
|
| +
|
| +namespace {
|
| +
|
| // Initialize the AtomicOps_Internalx86CPUFeatures struct.
|
| -static void AtomicOps_Internalx86CPUFeaturesInit() {
|
| +void AtomicOps_Internalx86CPUFeaturesInit() {
|
| + using v8::internal::AtomicOps_Internalx86CPUFeatures;
|
| +
|
| uint32_t eax;
|
| uint32_t ebx;
|
| uint32_t ecx;
|
| @@ -107,8 +116,6 @@ static void AtomicOps_Internalx86CPUFeaturesInit() {
|
| AtomicOps_Internalx86CPUFeatures.has_sse2 = ((edx >> 26) & 1);
|
| }
|
|
|
| -namespace {
|
| -
|
| class AtomicOpsx86Initializer {
|
| public:
|
| AtomicOpsx86Initializer() {
|
|
|