Fix, again, assertion so that it also compiles on Mac.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Mar 2010 10:38:17 +0000 (10:38 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Mar 2010 10:38:17 +0000 (10:38 +0000)
Review URL: http://codereview.chromium.org/993004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4142 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/heap-inl.h

index 5349be7ab6d9d753254e31442e8614fc40727727..f32f1e867e47a983a7d749a1cb7be85557c90805 100644 (file)
@@ -133,8 +133,8 @@ Object* Heap::AllocateRawMap() {
 #ifdef DEBUG
   if (!result->IsFailure()) {
     // Maps have their own alignment.
-    CHECK_EQ(static_cast<intptr_t>(kHeapObjectTag),
-             reinterpret_cast<intptr_t>(result) & kMapAlignmentMask);
+    CHECK((reinterpret_cast<intptr_t>(result) & kMapAlignmentMask) ==
+          static_cast<intptr_t>(kHeapObjectTag));
   }
 #endif
   return result;