Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index f76ec4433265df5fc347ec32cdd4a16f864eea4c..6e83b04d43dc97d519be60b5bb98a5a979b94016 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -105,7 +105,7 @@ void* OS::GetRandomMmapAddr() { |
// CpuFeatures::Probe. We don't care about randomization in this case because |
// the code page is immediately freed. |
if (isolate != NULL) { |
-#ifdef V8_TARGET_ARCH_X64 |
+#if V8_TARGET_ARCH_X64 |
uint64_t rnd1 = V8::RandomPrivate(isolate); |
uint64_t rnd2 = V8::RandomPrivate(isolate); |
uint64_t raw_addr = (rnd1 << 32) ^ rnd2; |
@@ -321,11 +321,12 @@ int OS::VSNPrintF(Vector<char> str, |
} |
-#if defined(V8_TARGET_ARCH_IA32) |
+#if V8_TARGET_ARCH_IA32 |
static void MemMoveWrapper(void* dest, const void* src, size_t size) { |
memmove(dest, src, size); |
} |
+ |
// Initialize to library version so we can call this at any time during startup. |
static OS::MemMoveFunction memmove_function = &MemMoveWrapper; |
@@ -344,7 +345,7 @@ void OS::MemMove(void* dest, const void* src, size_t size) { |
void POSIXPostSetUp() { |
-#if defined(V8_TARGET_ARCH_IA32) |
+#if V8_TARGET_ARCH_IA32 |
OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); |
if (generated_memmove != NULL) { |
memmove_function = generated_memmove; |
@@ -358,6 +359,7 @@ void POSIXPostSetUp() { |
init_fast_sqrt_function(); |
} |
+ |
// ---------------------------------------------------------------------------- |
// POSIX string support. |
// |