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

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

Issue 1957323003: [heap] Add page evacuation mode for new->new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Switch threshold flag back to 70 Created 4 years, 6 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/mark-compact.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/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 RelocationLock relocation_lock(this); 1605 RelocationLock relocation_lock(this);
1606 // There are soft limits in the allocation code, designed to trigger a mark 1606 // There are soft limits in the allocation code, designed to trigger a mark
1607 // sweep collection by failing allocations. There is no sense in trying to 1607 // sweep collection by failing allocations. There is no sense in trying to
1608 // trigger one during scavenge: scavenges allocation should always succeed. 1608 // trigger one during scavenge: scavenges allocation should always succeed.
1609 AlwaysAllocateScope scope(isolate()); 1609 AlwaysAllocateScope scope(isolate());
1610 1610
1611 // Bump-pointer allocations done during scavenge are not real allocations. 1611 // Bump-pointer allocations done during scavenge are not real allocations.
1612 // Pause the inline allocation steps. 1612 // Pause the inline allocation steps.
1613 PauseAllocationObserversScope pause_observers(this); 1613 PauseAllocationObserversScope pause_observers(this);
1614 1614
1615 mark_compact_collector()->sweeper().EnsureNewSpaceCompleted();
1616
1615 #ifdef VERIFY_HEAP 1617 #ifdef VERIFY_HEAP
1616 if (FLAG_verify_heap) VerifyNonPointerSpacePointers(this); 1618 if (FLAG_verify_heap) VerifyNonPointerSpacePointers(this);
1617 #endif 1619 #endif
1618 1620
1619 gc_state_ = SCAVENGE; 1621 gc_state_ = SCAVENGE;
1620 1622
1621 // Implements Cheney's copying algorithm 1623 // Implements Cheney's copying algorithm
1622 LOG(isolate_, ResourceEvent("scavenge", "begin")); 1624 LOG(isolate_, ResourceEvent("scavenge", "begin"));
1623 1625
1624 // Used for updating survived_since_last_expansion_ at function end. 1626 // Used for updating survived_since_last_expansion_ at function end.
(...skipping 4828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6453 } 6455 }
6454 6456
6455 6457
6456 // static 6458 // static
6457 int Heap::GetStaticVisitorIdForMap(Map* map) { 6459 int Heap::GetStaticVisitorIdForMap(Map* map) {
6458 return StaticVisitorBase::GetVisitorId(map); 6460 return StaticVisitorBase::GetVisitorId(map);
6459 } 6461 }
6460 6462
6461 } // namespace internal 6463 } // namespace internal
6462 } // namespace v8 6464 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698