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

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

Issue 1390013002: [heap] remove unneeded call to LowerInlineAllocationLimit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: delete NewSpace::inline_allocation_limit_step Created 5 years, 2 months 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 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
1730 array_buffer_tracker()->FreeDead(true); 1727 array_buffer_tracker()->FreeDead(true);
1731 1728
1732 // Update how much has survived scavenge. 1729 // Update how much has survived scavenge.
1733 IncrementYoungSurvivorsCounter(static_cast<int>( 1730 IncrementYoungSurvivorsCounter(static_cast<int>(
1734 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); 1731 (PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size()));
1735 1732
1736 LOG(isolate_, ResourceEvent("scavenge", "end")); 1733 LOG(isolate_, ResourceEvent("scavenge", "end"));
1737 1734
1738 gc_state_ = NOT_IN_GC; 1735 gc_state_ = NOT_IN_GC;
1739 } 1736 }
(...skipping 4400 matching lines...) Expand 10 before | Expand all | Expand 10 after
6140 } 6137 }
6141 6138
6142 6139
6143 // static 6140 // static
6144 int Heap::GetStaticVisitorIdForMap(Map* map) { 6141 int Heap::GetStaticVisitorIdForMap(Map* map) {
6145 return StaticVisitorBase::GetVisitorId(map); 6142 return StaticVisitorBase::GetVisitorId(map);
6146 } 6143 }
6147 6144
6148 } // namespace internal 6145 } // namespace internal
6149 } // namespace v8 6146 } // 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