Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1961)

Side by Side Diff: src/heap/heap.cc

Issue 1427973006: [heap] make inline allocation step size dynamic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698