| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |