| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/heap/incremental-marking.h" | 5 #include "src/heap/incremental-marking.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/compilation-cache.h" | 8 #include "src/compilation-cache.h" |
| 9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
| 10 #include "src/heap/gc-idle-time-handler.h" | 10 #include "src/heap/gc-idle-time-handler.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bytes_scanned_(0), | 38 bytes_scanned_(0), |
| 39 allocated_(0), | 39 allocated_(0), |
| 40 write_barriers_invoked_since_last_step_(0), | 40 write_barriers_invoked_since_last_step_(0), |
| 41 idle_marking_delay_counter_(0), | 41 idle_marking_delay_counter_(0), |
| 42 no_marking_scope_depth_(0), | 42 no_marking_scope_depth_(0), |
| 43 unscanned_bytes_of_large_object_(0), | 43 unscanned_bytes_of_large_object_(0), |
| 44 was_activated_(false), | 44 was_activated_(false), |
| 45 black_allocation_(false), | 45 black_allocation_(false), |
| 46 finalize_marking_completed_(false), | 46 finalize_marking_completed_(false), |
| 47 incremental_marking_finalization_rounds_(0), | 47 incremental_marking_finalization_rounds_(0), |
| 48 request_type_(COMPLETE_MARKING) {} | 48 request_type_(NONE) {} |
| 49 | 49 |
| 50 bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, Object* value) { | 50 bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, Object* value) { |
| 51 HeapObject* value_heap_obj = HeapObject::cast(value); | 51 HeapObject* value_heap_obj = HeapObject::cast(value); |
| 52 MarkBit value_bit = Marking::MarkBitFrom(value_heap_obj); | 52 MarkBit value_bit = Marking::MarkBitFrom(value_heap_obj); |
| 53 DCHECK(!Marking::IsImpossible(value_bit)); | 53 DCHECK(!Marking::IsImpossible(value_bit)); |
| 54 | 54 |
| 55 MarkBit obj_bit = Marking::MarkBitFrom(obj); | 55 MarkBit obj_bit = Marking::MarkBitFrom(obj); |
| 56 DCHECK(!Marking::IsImpossible(obj_bit)); | 56 DCHECK(!Marking::IsImpossible(obj_bit)); |
| 57 bool is_black = Marking::IsBlack(obj_bit); | 57 bool is_black = Marking::IsBlack(obj_bit); |
| 58 | 58 |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { | 1293 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { |
| 1294 idle_marking_delay_counter_++; | 1294 idle_marking_delay_counter_++; |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 | 1297 |
| 1298 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1298 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
| 1299 idle_marking_delay_counter_ = 0; | 1299 idle_marking_delay_counter_ = 0; |
| 1300 } | 1300 } |
| 1301 } // namespace internal | 1301 } // namespace internal |
| 1302 } // namespace v8 | 1302 } // namespace v8 |
| OLD | NEW |