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), | |
46 marking_parity_(ODD_MARKING_PARITY), | 45 marking_parity_(ODD_MARKING_PARITY), |
47 compacting_(false), | 46 compacting_(false), |
48 was_marked_incrementally_(false), | 47 was_marked_incrementally_(false), |
49 sweeping_in_progress_(false), | 48 sweeping_in_progress_(false), |
50 pending_sweeper_jobs_semaphore_(0), | 49 pending_sweeper_jobs_semaphore_(0), |
51 evacuation_(false), | 50 evacuation_(false), |
52 migration_slots_buffer_(NULL), | 51 migration_slots_buffer_(NULL), |
53 heap_(heap), | 52 heap_(heap), |
54 marking_deque_memory_(NULL), | 53 marking_deque_memory_(NULL), |
55 marking_deque_memory_committed_(false), | 54 marking_deque_memory_committed_(false), |
(...skipping 4676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4732 SlotsBuffer* buffer = *buffer_address; | 4731 SlotsBuffer* buffer = *buffer_address; |
4733 while (buffer != NULL) { | 4732 while (buffer != NULL) { |
4734 SlotsBuffer* next_buffer = buffer->next(); | 4733 SlotsBuffer* next_buffer = buffer->next(); |
4735 DeallocateBuffer(buffer); | 4734 DeallocateBuffer(buffer); |
4736 buffer = next_buffer; | 4735 buffer = next_buffer; |
4737 } | 4736 } |
4738 *buffer_address = NULL; | 4737 *buffer_address = NULL; |
4739 } | 4738 } |
4740 } | 4739 } |
4741 } // namespace v8::internal | 4740 } // namespace v8::internal |
OLD | NEW |