| 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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 inline HeapState gc_state() { return gc_state_; } | 747 inline HeapState gc_state() { return gc_state_; } |
| 748 | 748 |
| 749 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } | 749 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } |
| 750 | 750 |
| 751 // If an object has an AllocationMemento trailing it, return it, otherwise | 751 // If an object has an AllocationMemento trailing it, return it, otherwise |
| 752 // return NULL; | 752 // return NULL; |
| 753 template <FindMementoMode mode> | 753 template <FindMementoMode mode> |
| 754 inline AllocationMemento* FindAllocationMemento(HeapObject* object); | 754 inline AllocationMemento* FindAllocationMemento(HeapObject* object); |
| 755 | 755 |
| 756 // Returns false if not able to reserve. | 756 // Returns false if not able to reserve. |
| 757 bool ReserveSpace(Reservation* reservations); | 757 bool ReserveSpace(Reservation* reservations, List<Address>* maps); |
| 758 | 758 |
| 759 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); | 759 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); |
| 760 | 760 |
| 761 bool UsingEmbedderHeapTracer(); | 761 bool UsingEmbedderHeapTracer(); |
| 762 | 762 |
| 763 void TracePossibleWrapper(JSObject* js_object); | 763 void TracePossibleWrapper(JSObject* js_object); |
| 764 | 764 |
| 765 void RegisterExternallyReferencedObject(Object** object); | 765 void RegisterExternallyReferencedObject(Object** object); |
| 766 | 766 |
| 767 // | 767 // |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2708 friend class LargeObjectSpace; | 2708 friend class LargeObjectSpace; |
| 2709 friend class NewSpace; | 2709 friend class NewSpace; |
| 2710 friend class PagedSpace; | 2710 friend class PagedSpace; |
| 2711 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2711 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2712 }; | 2712 }; |
| 2713 | 2713 |
| 2714 } // namespace internal | 2714 } // namespace internal |
| 2715 } // namespace v8 | 2715 } // namespace v8 |
| 2716 | 2716 |
| 2717 #endif // V8_HEAP_HEAP_H_ | 2717 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |