Index: src/platform-freebsd.cc |
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
index d77b30f2454536c0d555c5dfcc0eab20d2a1714f..9e668a8ba647471946cbf3578e811ce74139941c 100644 |
--- a/src/platform-freebsd.cc |
+++ b/src/platform-freebsd.cc |
@@ -25,11 +25,12 @@ |
#include <stdarg.h> |
#include <strings.h> // index |
-#undef MAP_TYPE |
+#include <cmath> |
-#include "src/v8.h" |
+#undef MAP_TYPE |
#include "src/platform.h" |
+#include "src/utils.h" |
namespace v8 { |
@@ -192,8 +193,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. |