Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1406)

Unified Diff: src/spaces.cc

Issue 115073: Changed size of pointers stored as numbers to intptr_t in spaces.h. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index ea40d52116fe1e301c307f2bf33df3970ddc6318..c124af1deb5f80ead4fedcefddd76d032150a891 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -811,7 +811,7 @@ bool NewSpace::Setup(Address start, int size) {
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 @@ bool SemiSpace::Setup(Address start,
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 @@ static void PrintRSetRange(Address start, Address end, Object** object_p,
// 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 @@ static void PrintRSetRange(Address start, Address end, Object** object_p,
}
// 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(" ");
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698