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/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // WAS_SWEPT indicates that marking bits have been cleared by the sweeper, | 378 // WAS_SWEPT indicates that marking bits have been cleared by the sweeper, |
379 // otherwise marking bits are still intact. | 379 // otherwise marking bits are still intact. |
380 WAS_SWEPT, | 380 WAS_SWEPT, |
381 | 381 |
382 // Large objects can have a progress bar in their page header. These object | 382 // Large objects can have a progress bar in their page header. These object |
383 // are scanned in increments and will be kept black while being scanned. | 383 // are scanned in increments and will be kept black while being scanned. |
384 // Even if the mutator writes to them they will be kept black and a white | 384 // Even if the mutator writes to them they will be kept black and a white |
385 // to grey transition is performed in the value. | 385 // to grey transition is performed in the value. |
386 HAS_PROGRESS_BAR, | 386 HAS_PROGRESS_BAR, |
387 | 387 |
388 // This flag is intended to be used for testing. Works only when both | |
389 // FLAG_stress_compaction and FLAG_manual_evacuation_candidates_selection | |
390 // are set. It forces the page to become an evacuation candidate at next | |
391 // candidates selection cycle. | |
392 FORCE_EVACUATION_CANDIDATE_FOR_TESTING, | |
393 | |
394 // Last flag, keep at bottom. | 388 // Last flag, keep at bottom. |
395 NUM_MEMORY_CHUNK_FLAGS | 389 NUM_MEMORY_CHUNK_FLAGS |
396 }; | 390 }; |
397 | 391 |
398 | 392 |
399 static const int kPointersToHereAreInterestingMask = | 393 static const int kPointersToHereAreInterestingMask = |
400 1 << POINTERS_TO_HERE_ARE_INTERESTING; | 394 1 << POINTERS_TO_HERE_ARE_INTERESTING; |
401 | 395 |
402 static const int kPointersFromHereAreInterestingMask = | 396 static const int kPointersFromHereAreInterestingMask = |
403 1 << POINTERS_FROM_HERE_ARE_INTERESTING; | 397 1 << POINTERS_FROM_HERE_ARE_INTERESTING; |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 count = 0; | 2888 count = 0; |
2895 } | 2889 } |
2896 // Must be small, since an iteration is used for lookup. | 2890 // Must be small, since an iteration is used for lookup. |
2897 static const int kMaxComments = 64; | 2891 static const int kMaxComments = 64; |
2898 }; | 2892 }; |
2899 #endif | 2893 #endif |
2900 } | 2894 } |
2901 } // namespace v8::internal | 2895 } // namespace v8::internal |
2902 | 2896 |
2903 #endif // V8_HEAP_SPACES_H_ | 2897 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |