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 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 incremental_marking()->UpdateMarkingDequeAfterScavenge(); | 1717 incremental_marking()->UpdateMarkingDequeAfterScavenge(); |
1718 | 1718 |
1719 ScavengeWeakObjectRetainer weak_object_retainer(this); | 1719 ScavengeWeakObjectRetainer weak_object_retainer(this); |
1720 ProcessYoungWeakReferences(&weak_object_retainer); | 1720 ProcessYoungWeakReferences(&weak_object_retainer); |
1721 | 1721 |
1722 DCHECK(new_space_front == new_space_.top()); | 1722 DCHECK(new_space_front == new_space_.top()); |
1723 | 1723 |
1724 // Set age mark. | 1724 // Set age mark. |
1725 new_space_.set_age_mark(new_space_.top()); | 1725 new_space_.set_age_mark(new_space_.top()); |
1726 | 1726 |
| 1727 new_space_.LowerInlineAllocationLimit( |
| 1728 new_space_.inline_allocation_limit_step()); |
| 1729 |
1727 array_buffer_tracker()->FreeDead(true); | 1730 array_buffer_tracker()->FreeDead(true); |
1728 | 1731 |
1729 // Update how much has survived scavenge. | 1732 // Update how much has survived scavenge. |
1730 IncrementYoungSurvivorsCounter(static_cast<int>( | 1733 IncrementYoungSurvivorsCounter(static_cast<int>( |
1731 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); | 1734 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); |
1732 | 1735 |
1733 LOG(isolate_, ResourceEvent("scavenge", "end")); | 1736 LOG(isolate_, ResourceEvent("scavenge", "end")); |
1734 | 1737 |
1735 gc_state_ = NOT_IN_GC; | 1738 gc_state_ = NOT_IN_GC; |
1736 } | 1739 } |
(...skipping 4400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6137 } | 6140 } |
6138 | 6141 |
6139 | 6142 |
6140 // static | 6143 // static |
6141 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6144 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6142 return StaticVisitorBase::GetVisitorId(map); | 6145 return StaticVisitorBase::GetVisitorId(map); |
6143 } | 6146 } |
6144 | 6147 |
6145 } // namespace internal | 6148 } // namespace internal |
6146 } // namespace v8 | 6149 } // namespace v8 |
OLD | NEW |