OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |