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

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

Issue 2229583003: [serializer] reserve maps one by one to avoid fragmentation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix build Created 4 years, 4 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 | « src/address-map.h ('k') | src/heap/heap.cc » ('j') | 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 #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
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
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_
OLDNEW
« no previous file with comments | « src/address-map.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698