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

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

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 // Iterates over all roots in the heap. 1065 // Iterates over all roots in the heap.
1066 void IterateRoots(ObjectVisitor* v, VisitMode mode); 1066 void IterateRoots(ObjectVisitor* v, VisitMode mode);
1067 // Iterates over all strong roots in the heap. 1067 // Iterates over all strong roots in the heap.
1068 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); 1068 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode);
1069 // Iterates over entries in the smi roots list. Only interesting to the 1069 // Iterates over entries in the smi roots list. Only interesting to the
1070 // serializer/deserializer, since GC does not care about smis. 1070 // serializer/deserializer, since GC does not care about smis.
1071 void IterateSmiRoots(ObjectVisitor* v); 1071 void IterateSmiRoots(ObjectVisitor* v);
1072 // Iterates over all the other roots in the heap. 1072 // Iterates over all the other roots in the heap.
1073 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); 1073 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode);
1074 1074
1075 // Iterate pointers to from semispace of new space found in memory interval 1075 // Iterate pointers of promoted objects.
1076 // from start to end within |object|. 1076 void IteratePromotedObject(HeapObject* target, int size,
1077 void IteratePointersToFromSpace(HeapObject* target, int size, 1077 ObjectSlotCallback callback);
1078 ObjectSlotCallback callback);
1079 1078
1080 void IterateAndMarkPointersToFromSpace(HeapObject* object, Address start, 1079 void IteratePromotedObjectPointers(HeapObject* object, Address start,
1081 Address end, bool record_slots, 1080 Address end, bool record_slots,
1082 ObjectSlotCallback callback); 1081 ObjectSlotCallback callback);
1083 1082
1084 // =========================================================================== 1083 // ===========================================================================
1085 // Store buffer API. ========================================================= 1084 // Store buffer API. =========================================================
1086 // =========================================================================== 1085 // ===========================================================================
1087 1086
1088 // Write barrier support for address[offset] = o. 1087 // Write barrier support for address[offset] = o.
1089 INLINE(void RecordWrite(Address address, int offset)); 1088 INLINE(void RecordWrite(Address address, int offset));
1090 1089
1091 // Write barrier support for address[start : start + len[ = o. 1090 // Write barrier support for address[start : start + len[ = o.
1092 INLINE(void RecordWrites(Address address, int start, int len)); 1091 INLINE(void RecordWrites(Address address, int start, int len));
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 // Used for testing purposes. 2229 // Used for testing purposes.
2231 bool force_oom_; 2230 bool force_oom_;
2232 2231
2233 // Classes in "heap" can be friends. 2232 // Classes in "heap" can be friends.
2234 friend class AlwaysAllocateScope; 2233 friend class AlwaysAllocateScope;
2235 friend class GCCallbacksScope; 2234 friend class GCCallbacksScope;
2236 friend class GCTracer; 2235 friend class GCTracer;
2237 friend class HeapIterator; 2236 friend class HeapIterator;
2238 friend class IdleScavengeObserver; 2237 friend class IdleScavengeObserver;
2239 friend class IncrementalMarking; 2238 friend class IncrementalMarking;
2240 friend class IteratePointersToFromSpaceVisitor; 2239 friend class IteratePromotedObjectsVisitor;
2241 friend class MarkCompactCollector; 2240 friend class MarkCompactCollector;
2242 friend class MarkCompactMarkingVisitor; 2241 friend class MarkCompactMarkingVisitor;
2243 friend class NewSpace; 2242 friend class NewSpace;
2244 friend class ObjectStatsVisitor; 2243 friend class ObjectStatsVisitor;
2245 friend class Page; 2244 friend class Page;
2246 friend class Scavenger; 2245 friend class Scavenger;
2247 friend class StoreBuffer; 2246 friend class StoreBuffer;
2248 2247
2249 // The allocator interface. 2248 // The allocator interface.
2250 friend class Factory; 2249 friend class Factory;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 2655
2657 private: 2656 private:
2658 friend class NewSpace; 2657 friend class NewSpace;
2659 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); 2658 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver);
2660 }; 2659 };
2661 2660
2662 } // namespace internal 2661 } // namespace internal
2663 } // namespace v8 2662 } // namespace v8
2664 2663
2665 #endif // V8_HEAP_HEAP_H_ 2664 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698