Revision: 10526
Author:   [email protected]
Date:     Fri Jan 27 01:34:05 2012
Log: By popular demand: Slightly more honest typing in ClearNonLiveMapTransitions

Review URL: https://chromiumcodereview.appspot.com/9290049
http://code.google.com/p/v8/source/detail?r=10526

Modified:
 /branches/bleeding_edge/src/mark-compact.cc

=======================================
--- /branches/bleeding_edge/src/mark-compact.cc Wed Jan 25 07:11:59 2012
+++ /branches/bleeding_edge/src/mark-compact.cc Fri Jan 27 01:34:05 2012
@@ -2368,9 +2368,9 @@
 void MarkCompactCollector::ClearNonLiveMapTransitions(Map* map,
                                                       MarkBit map_mark) {
   // Follow the chain of back pointers to find the prototype.
-  Map* real_prototype = map;
+  Object* real_prototype = map;
   while (real_prototype->IsMap()) {
-    real_prototype = reinterpret_cast<Map*>(real_prototype->prototype());
+    real_prototype = Map::cast(real_prototype)->prototype();
     ASSERT(real_prototype->IsHeapObject());
   }

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

Reply via email to