| 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/heap/heap.h" | 5 #include "src/heap/heap.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/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 isolate()->PrintWithTimestamp( | 955 isolate()->PrintWithTimestamp( |
| 956 "[IncrementalMarking] Scavenge during marking.\n"); | 956 "[IncrementalMarking] Scavenge during marking.\n"); |
| 957 } | 957 } |
| 958 } | 958 } |
| 959 | 959 |
| 960 if (collector == MARK_COMPACTOR && !ShouldFinalizeIncrementalMarking() && | 960 if (collector == MARK_COMPACTOR && !ShouldFinalizeIncrementalMarking() && |
| 961 !ShouldAbortIncrementalMarking() && !incremental_marking()->IsStopped() && | 961 !ShouldAbortIncrementalMarking() && !incremental_marking()->IsStopped() && |
| 962 !incremental_marking()->should_hurry() && FLAG_incremental_marking && | 962 !incremental_marking()->should_hurry() && FLAG_incremental_marking && |
| 963 OldGenerationSpaceAvailable() <= 0) { | 963 OldGenerationSpaceAvailable() <= 0) { |
| 964 if (!incremental_marking()->IsComplete() && | 964 if (!incremental_marking()->IsComplete() && |
| 965 !mark_compact_collector()->marking_deque_.IsEmpty() && | 965 !mark_compact_collector()->marking_deque()->IsEmpty() && |
| 966 !FLAG_gc_global) { | 966 !FLAG_gc_global) { |
| 967 if (FLAG_trace_incremental_marking) { | 967 if (FLAG_trace_incremental_marking) { |
| 968 isolate()->PrintWithTimestamp( | 968 isolate()->PrintWithTimestamp( |
| 969 "[IncrementalMarking] Delaying MarkSweep.\n"); | 969 "[IncrementalMarking] Delaying MarkSweep.\n"); |
| 970 } | 970 } |
| 971 collector = SCAVENGER; | 971 collector = SCAVENGER; |
| 972 collector_reason = "incremental marking delaying mark-sweep"; | 972 collector_reason = "incremental marking delaying mark-sweep"; |
| 973 } | 973 } |
| 974 } | 974 } |
| 975 | 975 |
| (...skipping 5543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6519 } | 6519 } |
| 6520 | 6520 |
| 6521 | 6521 |
| 6522 // static | 6522 // static |
| 6523 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6523 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6524 return StaticVisitorBase::GetVisitorId(map); | 6524 return StaticVisitorBase::GetVisitorId(map); |
| 6525 } | 6525 } |
| 6526 | 6526 |
| 6527 } // namespace internal | 6527 } // namespace internal |
| 6528 } // namespace v8 | 6528 } // namespace v8 |
| OLD | NEW |