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

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

Issue 2720133005: [heap] Remove Marking::MarkBlack and some minor cleanups. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | 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 86d0b9616b5048822766280694daa4269b23e0a7..42aa243a032c31b779f2f67472e65004f9025073 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -67,7 +67,8 @@ class ObjectMarking : public AllStatic {
}
V8_INLINE static void ClearMarkBit(HeapObject* obj) {
ulan 2017/02/28 15:43:47 If object is black at the callsites, can we just u
Hannes Payer (out of office) 2017/03/01 13:49:18 No we cannot, since the object can also be grey (w
- Marking::MarkWhite(MarkBitFrom(obj));
+ DCHECK(IsBlack(obj));
+ Marking::BlackToWhite(MarkBitFrom(obj));
}
V8_INLINE static void BlackToWhite(HeapObject* obj) {
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698