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