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 | |
Hannes Payer (out of office)
2015/03/03 09:48:53
I don't think we need the FLAG_stress_compaction d
Igor Sheludko
2015/03/04 14:54:19
I would prefer to leave this dependency in order t
| |
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 | |
388 // Last flag, keep at bottom. | 394 // Last flag, keep at bottom. |
389 NUM_MEMORY_CHUNK_FLAGS | 395 NUM_MEMORY_CHUNK_FLAGS |
390 }; | 396 }; |
391 | 397 |
392 | 398 |
393 static const int kPointersToHereAreInterestingMask = | 399 static const int kPointersToHereAreInterestingMask = |
394 1 << POINTERS_TO_HERE_ARE_INTERESTING; | 400 1 << POINTERS_TO_HERE_ARE_INTERESTING; |
395 | 401 |
396 static const int kPointersFromHereAreInterestingMask = | 402 static const int kPointersFromHereAreInterestingMask = |
397 1 << POINTERS_FROM_HERE_ARE_INTERESTING; | 403 1 << POINTERS_FROM_HERE_ARE_INTERESTING; |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2888 count = 0; | 2894 count = 0; |
2889 } | 2895 } |
2890 // Must be small, since an iteration is used for lookup. | 2896 // Must be small, since an iteration is used for lookup. |
2891 static const int kMaxComments = 64; | 2897 static const int kMaxComments = 64; |
2892 }; | 2898 }; |
2893 #endif | 2899 #endif |
2894 } | 2900 } |
2895 } // namespace v8::internal | 2901 } // namespace v8::internal |
2896 | 2902 |
2897 #endif // V8_HEAP_SPACES_H_ | 2903 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |