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

Unified Diff: src/mark-compact.h

Issue 11029023: Revert "Allow partial scanning of large arrays in order to avoid" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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/incremental-marking.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 965204e6acc77f947cbe5b74d877729722b294c1..deade29f057fa4332cce5284708cb4ddeac06031 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -240,35 +240,6 @@ class MarkingDeque {
int mask() { return mask_; }
void set_top(int top) { top_ = top; }
- int space_left() {
- // If we already overflowed we may as well just say there is lots of
- // space left.
- if (overflowed_) return mask_ + 1;
- if (IsEmpty()) return mask_ + 1;
- if (IsFull()) return 0;
- return (bottom_ - top_) & mask_;
- }
-
-#ifdef DEBUG
- const char* Status() {
- if (overflowed_) return "Overflowed";
- if (IsEmpty()) return "Empty";
- if (IsFull()) return "Full";
- int oct = (((top_ - bottom_) & mask_) * 8) / (mask_ + 1);
- switch (oct) {
- case 0: return "Almost empty";
- case 1: return "1/8 full";
- case 2: return "2/8 full";
- case 3: return "3/8 full";
- case 4: return "4/8 full";
- case 5: return "5/8 full";
- case 6: return "6/8 full";
- case 7: return "7/8 full";
- }
- return "??";
- }
-#endif
-
private:
HeapObject** array_;
// array_[(top - 1) & mask_] is the top element in the deque. The Deque is
@@ -596,10 +567,6 @@ class MarkCompactCollector {
bool is_compacting() const { return compacting_; }
- // Find the large objects that are not completely scanned, but have been
- // postponed to later.
- static void ProcessLargePostponedArrays(Heap* heap, MarkingDeque* deque);
-
private:
MarkCompactCollector();
~MarkCompactCollector();
« no previous file with comments | « src/incremental-marking.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698