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 #ifndef V8_HEAP_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 void RegisterWrappersWithEmbedderHeapTracer(); | 493 void RegisterWrappersWithEmbedderHeapTracer(); |
494 | 494 |
495 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); | 495 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); |
496 | 496 |
497 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } | 497 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } |
498 | 498 |
499 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer(); } | 499 bool UsingEmbedderHeapTracer() { return embedder_heap_tracer(); } |
500 | 500 |
501 void TracePossibleWrapper(JSObject* js_object); | 501 void TracePossibleWrapper(JSObject* js_object); |
502 | 502 |
503 void RegisterExternallyReferencedObject(Object** object); | |
504 | |
505 private: | 503 private: |
506 class EvacuateNewSpacePageVisitor; | 504 class EvacuateNewSpacePageVisitor; |
507 class EvacuateNewSpaceVisitor; | 505 class EvacuateNewSpaceVisitor; |
508 class EvacuateOldSpaceVisitor; | 506 class EvacuateOldSpaceVisitor; |
509 class EvacuateRecordOnlyVisitor; | 507 class EvacuateRecordOnlyVisitor; |
510 class EvacuateVisitorBase; | 508 class EvacuateVisitorBase; |
511 class HeapObjectVisitor; | 509 class HeapObjectVisitor; |
512 class ObjectStatsVisitor; | 510 class ObjectStatsVisitor; |
513 | 511 |
514 explicit MarkCompactCollector(Heap* heap); | 512 explicit MarkCompactCollector(Heap* heap); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 private: | 767 private: |
770 MarkCompactCollector* collector_; | 768 MarkCompactCollector* collector_; |
771 }; | 769 }; |
772 | 770 |
773 | 771 |
774 const char* AllocationSpaceName(AllocationSpace space); | 772 const char* AllocationSpaceName(AllocationSpace space); |
775 } // namespace internal | 773 } // namespace internal |
776 } // namespace v8 | 774 } // namespace v8 |
777 | 775 |
778 #endif // V8_HEAP_MARK_COMPACT_H_ | 776 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |