OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_HEAP_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ |
6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" |
10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // FLAG_stress_compaction and FLAG_manual_evacuation_candidates_selection | 321 // FLAG_stress_compaction and FLAG_manual_evacuation_candidates_selection |
322 // are set. It forces the page to become an evacuation candidate at next | 322 // are set. It forces the page to become an evacuation candidate at next |
323 // candidates selection cycle. | 323 // candidates selection cycle. |
324 FORCE_EVACUATION_CANDIDATE_FOR_TESTING, | 324 FORCE_EVACUATION_CANDIDATE_FOR_TESTING, |
325 | 325 |
326 // The memory chunk is already logically freed, however the actual freeing | 326 // The memory chunk is already logically freed, however the actual freeing |
327 // still has to be performed. | 327 // still has to be performed. |
328 PRE_FREED, | 328 PRE_FREED, |
329 | 329 |
330 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page | 330 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page |
331 // has been aborted and needs special handling by the sweeper. | 331 // has been aborted and needs special handling, i.e., sweeper and store |
| 332 // buffer. |
332 COMPACTION_WAS_ABORTED, | 333 COMPACTION_WAS_ABORTED, |
333 | 334 |
334 // Last flag, keep at bottom. | 335 // Last flag, keep at bottom. |
335 NUM_MEMORY_CHUNK_FLAGS | 336 NUM_MEMORY_CHUNK_FLAGS |
336 }; | 337 }; |
337 | 338 |
338 // |kCompactionDone|: Initial compaction state of a |MemoryChunk|. | 339 // |kCompactionDone|: Initial compaction state of a |MemoryChunk|. |
339 // |kCompactingInProgress|: Parallel compaction is currently in progress. | 340 // |kCompactingInProgress|: Parallel compaction is currently in progress. |
340 // |kCompactingFinalize|: Parallel compaction is done but the chunk needs to | 341 // |kCompactingFinalize|: Parallel compaction is done but the chunk needs to |
341 // be finalized. | 342 // be finalized. |
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3140 count = 0; | 3141 count = 0; |
3141 } | 3142 } |
3142 // Must be small, since an iteration is used for lookup. | 3143 // Must be small, since an iteration is used for lookup. |
3143 static const int kMaxComments = 64; | 3144 static const int kMaxComments = 64; |
3144 }; | 3145 }; |
3145 #endif | 3146 #endif |
3146 } // namespace internal | 3147 } // namespace internal |
3147 } // namespace v8 | 3148 } // namespace v8 |
3148 | 3149 |
3149 #endif // V8_HEAP_SPACES_H_ | 3150 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |