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

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

Issue 2504993002: [heap] Minor MC: Add evacuation phase (Closed)
Patch Set: Rebase Created 4 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
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/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 1438
1439 LOG(isolate_, ResourceEvent("markcompact", "end")); 1439 LOG(isolate_, ResourceEvent("markcompact", "end"));
1440 1440
1441 MarkCompactEpilogue(); 1441 MarkCompactEpilogue();
1442 1442
1443 if (FLAG_allocation_site_pretenuring) { 1443 if (FLAG_allocation_site_pretenuring) {
1444 EvaluateOldSpaceLocalPretenuring(size_of_objects_before_gc); 1444 EvaluateOldSpaceLocalPretenuring(size_of_objects_before_gc);
1445 } 1445 }
1446 } 1446 }
1447 1447
1448 void Heap::MinorMarkCompact() { UNREACHABLE(); } 1448 void Heap::MinorMarkCompact() {
1449 TRACE_GC(tracer(), GCTracer::Scope::MINOR_MC);
1450 mark_compact_collector()->CollectGarbageInYoungGeneration();
1451 }
1449 1452
1450 void Heap::MarkCompactEpilogue() { 1453 void Heap::MarkCompactEpilogue() {
1451 TRACE_GC(tracer(), GCTracer::Scope::MC_EPILOGUE); 1454 TRACE_GC(tracer(), GCTracer::Scope::MC_EPILOGUE);
1452 gc_state_ = NOT_IN_GC; 1455 gc_state_ = NOT_IN_GC;
1453 1456
1454 isolate_->counters()->objs_since_last_full()->Set(0); 1457 isolate_->counters()->objs_since_last_full()->Set(0);
1455 1458
1456 incremental_marking()->Epilogue(); 1459 incremental_marking()->Epilogue();
1457 1460
1458 PreprocessStackTraces(); 1461 PreprocessStackTraces();
(...skipping 5002 matching lines...) Expand 10 before | Expand all | Expand 10 after
6461 } 6464 }
6462 6465
6463 6466
6464 // static 6467 // static
6465 int Heap::GetStaticVisitorIdForMap(Map* map) { 6468 int Heap::GetStaticVisitorIdForMap(Map* map) {
6466 return StaticVisitorBase::GetVisitorId(map); 6469 return StaticVisitorBase::GetVisitorId(map);
6467 } 6470 }
6468 6471
6469 } // namespace internal 6472 } // namespace internal
6470 } // namespace v8 6473 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698