Revision: 4141
Author: [email protected]
Date: Tue Mar 16 02:56:06 2010
Log: Fix bad use of OffsetFrom that fails on ARM (sizeof(Object) wasn't 1).

Review URL: http://codereview.chromium.org/1043001
http://code.google.com/p/v8/source/detail?r=4141

Modified:
 /branches/bleeding_edge/src/heap-inl.h

=======================================
--- /branches/bleeding_edge/src/heap-inl.h      Mon Mar  1 07:33:30 2010
+++ /branches/bleeding_edge/src/heap-inl.h      Tue Mar 16 02:56:06 2010
@@ -133,7 +133,8 @@
 #ifdef DEBUG
   if (!result->IsFailure()) {
     // Maps have their own alignment.
-    CHECK((OffsetFrom(result) & kMapAlignmentMask) == kHeapObjectTag);
+    CHECK_EQ(static_cast<intptr_t>(kHeapObjectTag),
+             reinterpret_cast<intptr_t>(result) & kMapAlignmentMask);
   }
 #endif
   return result;

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

Reply via email to