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/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 if (collector == SCAVENGER && !incremental_marking()->IsStopped()) { | 898 if (collector == SCAVENGER && !incremental_marking()->IsStopped()) { |
899 if (FLAG_trace_incremental_marking) { | 899 if (FLAG_trace_incremental_marking) { |
900 PrintF("[IncrementalMarking] Scavenge during marking.\n"); | 900 PrintF("[IncrementalMarking] Scavenge during marking.\n"); |
901 } | 901 } |
902 } | 902 } |
903 | 903 |
904 if (collector == MARK_COMPACTOR && | 904 if (collector == MARK_COMPACTOR && |
905 !mark_compact_collector()->finalize_incremental_marking() && | 905 !mark_compact_collector()->finalize_incremental_marking() && |
906 !mark_compact_collector()->abort_incremental_marking() && | 906 !mark_compact_collector()->abort_incremental_marking() && |
907 !incremental_marking()->IsStopped() && | 907 !incremental_marking()->IsStopped() && |
908 !incremental_marking()->should_hurry() && | 908 !incremental_marking()->should_hurry() && FLAG_incremental_marking) { |
909 FLAG_incremental_marking_steps) { | |
910 // Make progress in incremental marking. | 909 // Make progress in incremental marking. |
911 const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB; | 910 const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB; |
912 incremental_marking()->Step(kStepSizeWhenDelayedByScavenge, | 911 incremental_marking()->Step(kStepSizeWhenDelayedByScavenge, |
913 IncrementalMarking::NO_GC_VIA_STACK_GUARD); | 912 IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
914 if (!incremental_marking()->IsComplete() && | 913 if (!incremental_marking()->IsComplete() && |
915 !mark_compact_collector_.marking_deque_.IsEmpty() && !FLAG_gc_global) { | 914 !mark_compact_collector_.marking_deque_.IsEmpty() && !FLAG_gc_global) { |
916 if (FLAG_trace_incremental_marking) { | 915 if (FLAG_trace_incremental_marking) { |
917 PrintF("[IncrementalMarking] Delaying MarkSweep.\n"); | 916 PrintF("[IncrementalMarking] Delaying MarkSweep.\n"); |
918 } | 917 } |
919 collector = SCAVENGER; | 918 collector = SCAVENGER; |
(...skipping 6001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6921 *object_type = "CODE_TYPE"; \ | 6920 *object_type = "CODE_TYPE"; \ |
6922 *object_sub_type = "CODE_AGE/" #name; \ | 6921 *object_sub_type = "CODE_AGE/" #name; \ |
6923 return true; | 6922 return true; |
6924 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6923 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6925 #undef COMPARE_AND_RETURN_NAME | 6924 #undef COMPARE_AND_RETURN_NAME |
6926 } | 6925 } |
6927 return false; | 6926 return false; |
6928 } | 6927 } |
6929 } // namespace internal | 6928 } // namespace internal |
6930 } // namespace v8 | 6929 } // namespace v8 |
OLD | NEW |