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

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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 to from semispace of new space found in memory interval
1076 // from start to end within |object|. 1076 // from start to end within |object|.
1077 void IteratePointersToFromSpace(HeapObject* target, int size, 1077 void IteratePointersToFromSpace(HeapObject* target, int size,
1078 ObjectSlotCallback callback); 1078 ObjectSlotCallback callback);
1079 1079
1080 void IterateAndMarkPointersToFromSpace(HeapObject* object, Address start, 1080 void IteratePromotedObjectPointers(HeapObject* object, Address start,
1081 Address end, bool record_slots, 1081 Address end, bool record_slots,
1082 ObjectSlotCallback callback); 1082 ObjectSlotCallback callback);
1083 1083
1084 // =========================================================================== 1084 // ===========================================================================
1085 // Store buffer API. ========================================================= 1085 // Store buffer API. =========================================================
1086 // =========================================================================== 1086 // ===========================================================================
1087 1087
1088 // Write barrier support for address[offset] = o. 1088 // Write barrier support for address[offset] = o.
1089 INLINE(void RecordWrite(Address address, int offset)); 1089 INLINE(void RecordWrite(Address address, int offset));
1090 1090
1091 // Write barrier support for address[start : start + len[ = o. 1091 // Write barrier support for address[start : start + len[ = o.
1092 INLINE(void RecordWrites(Address address, int start, int len)); 1092 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. 2230 // Used for testing purposes.
2231 bool force_oom_; 2231 bool force_oom_;
2232 2232
2233 // Classes in "heap" can be friends. 2233 // Classes in "heap" can be friends.
2234 friend class AlwaysAllocateScope; 2234 friend class AlwaysAllocateScope;
2235 friend class GCCallbacksScope; 2235 friend class GCCallbacksScope;
2236 friend class GCTracer; 2236 friend class GCTracer;
2237 friend class HeapIterator; 2237 friend class HeapIterator;
2238 friend class IdleScavengeObserver; 2238 friend class IdleScavengeObserver;
2239 friend class IncrementalMarking; 2239 friend class IncrementalMarking;
2240 friend class IteratePointersToFromSpaceVisitor; 2240 friend class IteratePromotedObjectsVisitor;
2241 friend class MarkCompactCollector; 2241 friend class MarkCompactCollector;
2242 friend class MarkCompactMarkingVisitor; 2242 friend class MarkCompactMarkingVisitor;
2243 friend class NewSpace; 2243 friend class NewSpace;
2244 friend class ObjectStatsVisitor; 2244 friend class ObjectStatsVisitor;
2245 friend class Page; 2245 friend class Page;
2246 friend class Scavenger; 2246 friend class Scavenger;
2247 friend class StoreBuffer; 2247 friend class StoreBuffer;
2248 2248
2249 // The allocator interface. 2249 // The allocator interface.
2250 friend class Factory; 2250 friend class Factory;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 2656
2657 private: 2657 private:
2658 friend class NewSpace; 2658 friend class NewSpace;
2659 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); 2659 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver);
2660 }; 2660 };
2661 2661
2662 } // namespace internal 2662 } // namespace internal
2663 } // namespace v8 2663 } // namespace v8
2664 2664
2665 #endif // V8_HEAP_HEAP_H_ 2665 #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