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

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

Issue 1836283007: [heap] Tracer: Fix accounting for external epilogue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | no next file » | 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 HandleScope handle_scope(isolate_); 833 HandleScope handle_scope(isolate_);
834 CallGCPrologueCallbacks(kGCTypeIncrementalMarking, kNoGCCallbackFlags); 834 CallGCPrologueCallbacks(kGCTypeIncrementalMarking, kNoGCCallbackFlags);
835 } 835 }
836 } 836 }
837 incremental_marking()->FinalizeIncrementally(); 837 incremental_marking()->FinalizeIncrementally();
838 { 838 {
839 GCCallbacksScope scope(this); 839 GCCallbacksScope scope(this);
840 if (scope.CheckReenter()) { 840 if (scope.CheckReenter()) {
841 AllowHeapAllocation allow_allocation; 841 AllowHeapAllocation allow_allocation;
842 GCTracer::Scope scope(tracer(), 842 GCTracer::Scope scope(tracer(),
843 GCTracer::Scope::MC_INCREMENTAL_EXTERNAL_PROLOGUE); 843 GCTracer::Scope::MC_INCREMENTAL_EXTERNAL_EPILOGUE);
844 VMState<EXTERNAL> state(isolate_); 844 VMState<EXTERNAL> state(isolate_);
845 HandleScope handle_scope(isolate_); 845 HandleScope handle_scope(isolate_);
846 CallGCEpilogueCallbacks(kGCTypeIncrementalMarking, kNoGCCallbackFlags); 846 CallGCEpilogueCallbacks(kGCTypeIncrementalMarking, kNoGCCallbackFlags);
847 } 847 }
848 } 848 }
849 } 849 }
850 850
851 851
852 HistogramTimer* Heap::GCTypeTimer(GarbageCollector collector) { 852 HistogramTimer* Heap::GCTypeTimer(GarbageCollector collector) {
853 if (collector == SCAVENGER) { 853 if (collector == SCAVENGER) {
(...skipping 5617 matching lines...) Expand 10 before | Expand all | Expand 10 after
6471 } 6471 }
6472 6472
6473 6473
6474 // static 6474 // static
6475 int Heap::GetStaticVisitorIdForMap(Map* map) { 6475 int Heap::GetStaticVisitorIdForMap(Map* map) {
6476 return StaticVisitorBase::GetVisitorId(map); 6476 return StaticVisitorBase::GetVisitorId(map);
6477 } 6477 }
6478 6478
6479 } // namespace internal 6479 } // namespace internal
6480 } // namespace v8 6480 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698