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

Unified Diff: src/heap/mark-compact.h

Issue 1535933002: Revert of [heap] delete Heap::LeftTrimFixedAray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Bring back GreyToWhite Created 5 years 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/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 322e8b83869295a338b6ba6e6b0b44d6291a1650..1ade4372f61d0909b1caad9b8d966935f06d0022 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -83,6 +83,12 @@ class Marking : public AllStatic {
markbit.Clear();
}
+ INLINE(static void GreyToWhite(MarkBit markbit)) {
+ DCHECK(IsGrey(markbit));
+ markbit.Clear();
+ markbit.Next().Clear();
+ }
+
INLINE(static void BlackToGrey(MarkBit markbit)) {
DCHECK(IsBlack(markbit));
markbit.Next().Set();
@@ -113,6 +119,8 @@ class Marking : public AllStatic {
markbit.Next().Set();
}
+ static void TransferMark(Heap* heap, Address old_start, Address new_start);
+
#ifdef DEBUG
enum ObjectColor {
BLACK_OBJECT,
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698