| 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 <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 PRE_FREED, | 443 PRE_FREED, |
| 444 | 444 |
| 445 // |POOLED|: When actually freeing this chunk, only uncommit and do not | 445 // |POOLED|: When actually freeing this chunk, only uncommit and do not |
| 446 // give up the reservation as we still reuse the chunk at some point. | 446 // give up the reservation as we still reuse the chunk at some point. |
| 447 POOLED, | 447 POOLED, |
| 448 | 448 |
| 449 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page | 449 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page |
| 450 // has been aborted and needs special handling by the sweeper. | 450 // has been aborted and needs special handling by the sweeper. |
| 451 COMPACTION_WAS_ABORTED, | 451 COMPACTION_WAS_ABORTED, |
| 452 | 452 |
| 453 // |COMPACTION_WAS_ABORTED_FOR_TESTING|: During stress testing evacuation |
| 454 // on pages is sometimes aborted. The flag is used to avoid repeatedly |
| 455 // triggering on the same page. |
| 456 COMPACTION_WAS_ABORTED_FOR_TESTING, |
| 457 |
| 453 // |ANCHOR|: Flag is set if page is an anchor. | 458 // |ANCHOR|: Flag is set if page is an anchor. |
| 454 ANCHOR, | 459 ANCHOR, |
| 455 | 460 |
| 456 // Last flag, keep at bottom. | 461 // Last flag, keep at bottom. |
| 457 NUM_MEMORY_CHUNK_FLAGS | 462 NUM_MEMORY_CHUNK_FLAGS |
| 458 }; | 463 }; |
| 459 | 464 |
| 460 // |kSweepingDone|: The page state when sweeping is complete or sweeping must | 465 // |kSweepingDone|: The page state when sweeping is complete or sweeping must |
| 461 // not be performed on that page. Sweeper threads that are done with their | 466 // not be performed on that page. Sweeper threads that are done with their |
| 462 // work will set this value and not touch the page anymore. | 467 // work will set this value and not touch the page anymore. |
| (...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3156 count = 0; | 3161 count = 0; |
| 3157 } | 3162 } |
| 3158 // Must be small, since an iteration is used for lookup. | 3163 // Must be small, since an iteration is used for lookup. |
| 3159 static const int kMaxComments = 64; | 3164 static const int kMaxComments = 64; |
| 3160 }; | 3165 }; |
| 3161 #endif | 3166 #endif |
| 3162 } // namespace internal | 3167 } // namespace internal |
| 3163 } // namespace v8 | 3168 } // namespace v8 |
| 3164 | 3169 |
| 3165 #endif // V8_HEAP_SPACES_H_ | 3170 #endif // V8_HEAP_SPACES_H_ |
| OLD | NEW |