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

Unified Diff: src/mark-compact.h

Issue 7389008: Make Win64 compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 5 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
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 4b94b3111b93d667ec7f48cdbee780b494813a3c..75ec76ccfcd8fd483a4ce4f4eca212ae8b3b5325 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -188,7 +188,7 @@ class MarkingDeque {
HeapObject** obj_low = reinterpret_cast<HeapObject**>(low);
HeapObject** obj_high = reinterpret_cast<HeapObject**>(high);
array_ = obj_low;
- mask_ = RoundDownToPowerOf2(obj_high - obj_low) - 1;
+ mask_ = RoundDownToPowerOf2(static_cast<int>(obj_high - obj_low)) - 1;
top_ = bottom_ = 0;
overflowed_ = false;
}
@@ -248,10 +248,10 @@ class MarkingDeque {
}
HeapObject** array() { return array_; }
- intptr_t bottom() { return bottom_; }
- intptr_t top() { return top_; }
- intptr_t mask() { return mask_; }
- void set_top(intptr_t top) { top_ = top; }
+ int bottom() { return bottom_; }
+ int top() { return top_; }
+ int mask() { return mask_; }
+ void set_top(int top) { top_ = top; }
private:
HeapObject** array_;

Powered by Google App Engine
This is Rietveld 408576698