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/v8.h" | 5 #include "src/v8.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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // ------------------------------------------------------------------------- | 35 // ------------------------------------------------------------------------- |
36 // MarkCompactCollector | 36 // MarkCompactCollector |
37 | 37 |
38 MarkCompactCollector::MarkCompactCollector(Heap* heap) | 38 MarkCompactCollector::MarkCompactCollector(Heap* heap) |
39 : // NOLINT | 39 : // NOLINT |
40 #ifdef DEBUG | 40 #ifdef DEBUG |
41 state_(IDLE), | 41 state_(IDLE), |
42 #endif | 42 #endif |
43 reduce_memory_footprint_(false), | 43 reduce_memory_footprint_(false), |
44 abort_incremental_marking_(false), | 44 abort_incremental_marking_(false), |
| 45 finalize_incremental_marking_(false), |
45 marking_parity_(ODD_MARKING_PARITY), | 46 marking_parity_(ODD_MARKING_PARITY), |
46 compacting_(false), | 47 compacting_(false), |
47 was_marked_incrementally_(false), | 48 was_marked_incrementally_(false), |
48 sweeping_in_progress_(false), | 49 sweeping_in_progress_(false), |
49 pending_sweeper_jobs_semaphore_(0), | 50 pending_sweeper_jobs_semaphore_(0), |
50 evacuation_(false), | 51 evacuation_(false), |
51 migration_slots_buffer_(NULL), | 52 migration_slots_buffer_(NULL), |
52 heap_(heap), | 53 heap_(heap), |
53 marking_deque_memory_(NULL), | 54 marking_deque_memory_(NULL), |
54 marking_deque_memory_committed_(false), | 55 marking_deque_memory_committed_(false), |
(...skipping 4673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4728 SlotsBuffer* buffer = *buffer_address; | 4729 SlotsBuffer* buffer = *buffer_address; |
4729 while (buffer != NULL) { | 4730 while (buffer != NULL) { |
4730 SlotsBuffer* next_buffer = buffer->next(); | 4731 SlotsBuffer* next_buffer = buffer->next(); |
4731 DeallocateBuffer(buffer); | 4732 DeallocateBuffer(buffer); |
4732 buffer = next_buffer; | 4733 buffer = next_buffer; |
4733 } | 4734 } |
4734 *buffer_address = NULL; | 4735 *buffer_address = NULL; |
4735 } | 4736 } |
4736 } | 4737 } |
4737 } // namespace v8::internal | 4738 } // namespace v8::internal |
OLD | NEW |