Reviewers: Yang,

Description:
Fix compilation issue on Win64.

[email protected]


Please review this at https://chromiumcodereview.appspot.com/9465003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/spaces.cc


Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index de738fba80ab3cef49f0b5978a68d08045e658c3..1fbad551aff63992553b1161e99aaf8fc854a602 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -699,7 +699,7 @@ int MemoryAllocator::CodePageGuardStartOffset() {


 int MemoryAllocator::CodePageGuardSize() {
-  return OS::CommitPageSize();
+  return static_cast<int>(OS::CommitPageSize());
 }


@@ -713,7 +713,7 @@ int MemoryAllocator::CodePageAreaStartOffset() {
 int MemoryAllocator::CodePageAreaEndOffset() {
   // We are guarding code pages: the last OS page will be protected as
   // non-writable.
-  return Page::kPageSize - OS::CommitPageSize();
+  return Page::kPageSize - static_cast<int>(OS::CommitPageSize());
 }




--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to