| 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/mark-compact.h" | 5 #include "src/heap/mark-compact.h" |
| 6 | 6 |
| 7 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/base/sys-info.h" | 9 #include "src/base/sys-info.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 marking_parity_(ODD_MARKING_PARITY), | 55 marking_parity_(ODD_MARKING_PARITY), |
| 56 was_marked_incrementally_(false), | 56 was_marked_incrementally_(false), |
| 57 evacuation_(false), | 57 evacuation_(false), |
| 58 heap_(heap), | 58 heap_(heap), |
| 59 marking_deque_memory_(NULL), | 59 marking_deque_memory_(NULL), |
| 60 marking_deque_memory_committed_(0), | 60 marking_deque_memory_committed_(0), |
| 61 code_flusher_(nullptr), | 61 code_flusher_(nullptr), |
| 62 embedder_heap_tracer_(nullptr), | 62 embedder_heap_tracer_(nullptr), |
| 63 have_code_to_deoptimize_(false), | 63 have_code_to_deoptimize_(false), |
| 64 compacting_(false), | 64 compacting_(false), |
| 65 pending_compaction_tasks_semaphore_(0), | |
| 66 sweeper_(heap) { | 65 sweeper_(heap) { |
| 67 } | 66 } |
| 68 | 67 |
| 69 #ifdef VERIFY_HEAP | 68 #ifdef VERIFY_HEAP |
| 70 class VerifyMarkingVisitor : public ObjectVisitor { | 69 class VerifyMarkingVisitor : public ObjectVisitor { |
| 71 public: | 70 public: |
| 72 explicit VerifyMarkingVisitor(Heap* heap) : heap_(heap) {} | 71 explicit VerifyMarkingVisitor(Heap* heap) : heap_(heap) {} |
| 73 | 72 |
| 74 void VisitPointers(Object** start, Object** end) override { | 73 void VisitPointers(Object** start, Object** end) override { |
| 75 for (Object** current = start; current < end; current++) { | 74 for (Object** current = start; current < end; current++) { |
| (...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3948 MarkBit mark_bit = Marking::MarkBitFrom(host); | 3947 MarkBit mark_bit = Marking::MarkBitFrom(host); |
| 3949 if (Marking::IsBlack(mark_bit)) { | 3948 if (Marking::IsBlack(mark_bit)) { |
| 3950 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host); | 3949 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host); |
| 3951 RecordRelocSlot(host, &rinfo, target); | 3950 RecordRelocSlot(host, &rinfo, target); |
| 3952 } | 3951 } |
| 3953 } | 3952 } |
| 3954 } | 3953 } |
| 3955 | 3954 |
| 3956 } // namespace internal | 3955 } // namespace internal |
| 3957 } // namespace v8 | 3956 } // namespace v8 |
| OLD | NEW |