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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 ScavengeWeakObjectRetainer weak_object_retainer(this); | 1729 ScavengeWeakObjectRetainer weak_object_retainer(this); |
1730 ProcessYoungWeakReferences(&weak_object_retainer); | 1730 ProcessYoungWeakReferences(&weak_object_retainer); |
1731 | 1731 |
1732 DCHECK(new_space_front == new_space_.top()); | 1732 DCHECK(new_space_front == new_space_.top()); |
1733 | 1733 |
1734 // Set age mark. | 1734 // Set age mark. |
1735 new_space_.set_age_mark(new_space_.top()); | 1735 new_space_.set_age_mark(new_space_.top()); |
1736 | 1736 |
1737 // We start a new step without accounting the objects copied into to space | 1737 // We start a new step without accounting the objects copied into to space |
1738 // as those are not allocations. | 1738 // as those are not allocations. |
1739 new_space_.UpdateInlineAllocationLimitStep(); | 1739 new_space_.StartNextInlineAllocationStep(); |
1740 | 1740 |
1741 array_buffer_tracker()->FreeDead(true); | 1741 array_buffer_tracker()->FreeDead(true); |
1742 | 1742 |
1743 // Update how much has survived scavenge. | 1743 // Update how much has survived scavenge. |
1744 IncrementYoungSurvivorsCounter(static_cast<int>( | 1744 IncrementYoungSurvivorsCounter(static_cast<int>( |
1745 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); | 1745 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); |
1746 | 1746 |
1747 LOG(isolate_, ResourceEvent("scavenge", "end")); | 1747 LOG(isolate_, ResourceEvent("scavenge", "end")); |
1748 | 1748 |
1749 gc_state_ = NOT_IN_GC; | 1749 gc_state_ = NOT_IN_GC; |
(...skipping 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6193 } | 6193 } |
6194 | 6194 |
6195 | 6195 |
6196 // static | 6196 // static |
6197 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6197 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6198 return StaticVisitorBase::GetVisitorId(map); | 6198 return StaticVisitorBase::GetVisitorId(map); |
6199 } | 6199 } |
6200 | 6200 |
6201 } // namespace internal | 6201 } // namespace internal |
6202 } // namespace v8 | 6202 } // namespace v8 |
OLD | NEW |