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

Side by Side Diff: src/heap/marking.h

Issue 2734823003: [heap] Remove ObjectMarking::BlackToWhite and ObjectMarking::GreyToWhite. (Closed)
Patch Set: [heap] Remove ObjectMarking::BlackToWhite and ObjectMarking::GreyToWhite. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MARKING_H 5 #ifndef V8_MARKING_H
6 #define V8_MARKING_H 6 #define V8_MARKING_H
7 7
8 #include "src/utils.h" 8 #include "src/utils.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 INLINE(static void BlackToWhite(MarkBit markbit)) { 306 INLINE(static void BlackToWhite(MarkBit markbit)) {
307 DCHECK(IsBlack(markbit)); 307 DCHECK(IsBlack(markbit));
308 markbit.Clear(); 308 markbit.Clear();
309 markbit.Next().Clear(); 309 markbit.Next().Clear();
310 } 310 }
311 311
312 INLINE(static void GreyToWhite(MarkBit markbit)) { 312 INLINE(static void GreyToWhite(MarkBit markbit)) {
313 DCHECK(IsGrey(markbit)); 313 DCHECK(IsGrey(markbit));
314 markbit.Clear(); 314 markbit.Clear();
315 markbit.Next().Clear();
316 } 315 }
317 316
318 INLINE(static void BlackToGrey(MarkBit markbit)) { 317 INLINE(static void BlackToGrey(MarkBit markbit)) {
319 DCHECK(IsBlack(markbit)); 318 DCHECK(IsBlack(markbit));
320 markbit.Next().Clear(); 319 markbit.Next().Clear();
321 } 320 }
322 321
323 INLINE(static void WhiteToGrey(MarkBit markbit)) { 322 INLINE(static void WhiteToGrey(MarkBit markbit)) {
324 DCHECK(IsWhite(markbit)); 323 DCHECK(IsWhite(markbit));
325 markbit.Set(); 324 markbit.Set();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 365 }
367 366
368 private: 367 private:
369 DISALLOW_IMPLICIT_CONSTRUCTORS(Marking); 368 DISALLOW_IMPLICIT_CONSTRUCTORS(Marking);
370 }; 369 };
371 370
372 } // namespace internal 371 } // namespace internal
373 } // namespace v8 372 } // namespace v8
374 373
375 #endif // V8_MARKING_H_ 374 #endif // V8_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698