Revision: 3361
Author: [email protected]
Date: Wed Nov 25 05:27:15 2009
Log: Fix 64 bit build.  TBR=ager.
Review URL: http://codereview.chromium.org/442003
http://code.google.com/p/v8/source/detail?r=3361

Modified:
  /branches/bleeding_edge/src/serialize.cc

=======================================
--- /branches/bleeding_edge/src/serialize.cc    Wed Nov 25 04:55:33 2009
+++ /branches/bleeding_edge/src/serialize.cc    Wed Nov 25 05:27:15 2009
@@ -55,9 +55,9 @@

    static int MappedTo(HeapObject* obj) {
      ASSERT(IsMapped(obj));
-    return reinterpret_cast<int>(serialization_map_->Lookup(Key(obj),
-                                 Hash(obj),
-                                 false)->value);
+    return reinterpret_cast<intptr_t>(serialization_map_->Lookup(Key(obj),
+                                      Hash(obj),
+                                      false)->value);
    }

    static void Map(HeapObject* obj, int to) {
@@ -81,7 +81,7 @@
    }

    static uint32_t Hash(HeapObject* obj) {
-    return reinterpret_cast<uint32_t>(obj->address());
+    return reinterpret_cast<intptr_t>(obj->address());
    }

    static void* Key(HeapObject* obj) {

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

Reply via email to