Author: [email protected]
Date: Thu May  7 01:50:22 2009
New Revision: 1891

Modified:
    branches/bleeding_edge/src/spaces.cc
    branches/bleeding_edge/src/spaces.h

Log:
Changed size of pointers stored as numbers to intptr_t in spaces.h.

Review URL: http://codereview.chromium.org/115073


Modified: branches/bleeding_edge/src/spaces.cc
==============================================================================
--- branches/bleeding_edge/src/spaces.cc        (original)
+++ branches/bleeding_edge/src/spaces.cc        Thu May  7 01:50:22 2009
@@ -811,7 +811,7 @@
    start_ = start;
    address_mask_ = ~(size - 1);
    object_mask_ = address_mask_ | kHeapObjectTag;
-  object_expected_ = reinterpret_cast<uint32_t>(start) | kHeapObjectTag;
+  object_expected_ = reinterpret_cast<uintptr_t>(start) | kHeapObjectTag;

    allocation_info_.top = to_space_.low();
    allocation_info_.limit = to_space_.high();
@@ -970,7 +970,7 @@
    start_ = start;
    address_mask_ = ~(maximum_capacity - 1);
    object_mask_ = address_mask_ | kHeapObjectTag;
-  object_expected_ = reinterpret_cast<uint32_t>(start) | kHeapObjectTag;
+  object_expected_ = reinterpret_cast<uintptr_t>(start) | kHeapObjectTag;

    age_mark_ = start_;
    return true;
@@ -1890,7 +1890,7 @@

    // If the range starts on on odd numbered word (eg, for large object  
extra
    // remembered set ranges), print some spaces.
-  if ((reinterpret_cast<uint32_t>(start) / kIntSize) % 2 == 1) {
+  if ((reinterpret_cast<uintptr_t>(start) / kIntSize) % 2 == 1) {
      PrintF("                                    ");
    }

@@ -1929,7 +1929,7 @@
      }

      // Print a newline after every odd numbered word, otherwise a space.
-    if ((reinterpret_cast<uint32_t>(rset_address) / kIntSize) % 2 == 1) {
+    if ((reinterpret_cast<uintptr_t>(rset_address) / kIntSize) % 2 == 1) {
        PrintF("\n");
      } else {
        PrintF(" ");

Modified: branches/bleeding_edge/src/spaces.h
==============================================================================
--- branches/bleeding_edge/src/spaces.h (original)
+++ branches/bleeding_edge/src/spaces.h Thu May  7 01:50:22 2009
@@ -1183,9 +1183,9 @@

    // Start address and bit mask for containment testing.
    Address start_;
-  uint32_t address_mask_;
-  uint32_t object_mask_;
-  uint32_t object_expected_;
+  uintptr_t address_mask_;
+  uintptr_t object_mask_;
+  uintptr_t object_expected_;

    // Allocation pointer and limit for normal allocation and allocation  
during
    // mark-compact collection.

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

Reply via email to