Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index dfff0d17efdb1488077283cadb03d970e371088f..7b6609b63fd610be0cc4f158dc719b7c772d0a7b 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -31,11 +31,12 @@ |
#include <sys/time.h> |
#include <sys/types.h> |
-#undef MAP_TYPE |
+#include <cmath> |
-#include "src/v8.h" |
+#undef MAP_TYPE |
#include "src/platform.h" |
+#include "src/utils.h" |
namespace v8 { |
@@ -194,8 +195,8 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
kMmapFdOffset); |
if (reservation == MAP_FAILED) return; |
- Address base = static_cast<Address>(reservation); |
- Address aligned_base = RoundUp(base, alignment); |
+ uint8_t* base = static_cast<uint8_t*>(reservation); |
+ uint8_t* aligned_base = RoundUp(base, alignment); |
ASSERT_LE(base, aligned_base); |
// Unmap extra memory reserved before and after the desired block. |