Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: src/platform-solaris.cc

Issue 353113003: Remove dependency from platform files on v8.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform-qnx.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-solaris.cc
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc
index 931bc1166ac3598a250caee09f564b21c8dd77fc..4803531b733e93c8fbc04242184a7e3d1a1507c5 100644
--- a/src/platform-solaris.cc
+++ b/src/platform-solaris.cc
@@ -23,12 +23,12 @@
#include <ucontext.h> // walkstack(), getcontext()
#include <unistd.h> // getpagesize(), usleep()
+#include <cmath>
#undef MAP_TYPE
-#include "src/v8.h"
-
#include "src/platform.h"
+#include "src/utils.h"
// It seems there is a bug in some Solaris distributions (experienced in
@@ -165,8 +165,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.
« no previous file with comments | « src/platform-qnx.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698