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

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

Issue 2063013005: Revert of [heap] Add page evacuation mode for new->new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
1617 #ifdef VERIFY_HEAP 1615 #ifdef VERIFY_HEAP
1618 if (FLAG_verify_heap) VerifyNonPointerSpacePointers(this); 1616 if (FLAG_verify_heap) VerifyNonPointerSpacePointers(this);
1619 #endif 1617 #endif
1620 1618
1621 gc_state_ = SCAVENGE; 1619 gc_state_ = SCAVENGE;
1622 1620
1623 // Implements Cheney's copying algorithm 1621 // Implements Cheney's copying algorithm
1624 LOG(isolate_, ResourceEvent("scavenge", "begin")); 1622 LOG(isolate_, ResourceEvent("scavenge", "begin"));
1625 1623
1626 // Used for updating survived_since_last_expansion_ at function end. 1624 // Used for updating survived_since_last_expansion_ at function end.
(...skipping 4828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 } 6453 }
6456 6454
6457 6455
6458 // static 6456 // static
6459 int Heap::GetStaticVisitorIdForMap(Map* map) { 6457 int Heap::GetStaticVisitorIdForMap(Map* map) {
6460 return StaticVisitorBase::GetVisitorId(map); 6458 return StaticVisitorBase::GetVisitorId(map);
6461 } 6459 }
6462 6460
6463 } // namespace internal 6461 } // namespace internal
6464 } // namespace v8 6462 } // 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