Chromium Code Reviews| 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1244 // Iterates over all strong roots in the heap. | 1244 // Iterates over all strong roots in the heap. |
| 1245 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); | 1245 void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); |
| 1246 // Iterates over entries in the smi roots list. Only interesting to the | 1246 // Iterates over entries in the smi roots list. Only interesting to the |
| 1247 // serializer/deserializer, since GC does not care about smis. | 1247 // serializer/deserializer, since GC does not care about smis. |
| 1248 void IterateSmiRoots(ObjectVisitor* v); | 1248 void IterateSmiRoots(ObjectVisitor* v); |
| 1249 // Iterates over all the other roots in the heap. | 1249 // Iterates over all the other roots in the heap. |
| 1250 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); | 1250 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); |
| 1251 | 1251 |
| 1252 // Iterate pointers to from semispace of new space found in memory interval | 1252 // Iterate pointers to from semispace of new space found in memory interval |
| 1253 // from start to end within |object|. | 1253 // from start to end within |object|. |
| 1254 void IteratePointersToFromSpace(HeapObject* target, int size, | |
|
Michael Starzinger
2015/10/27 18:20:43
Really? Between the comment that talks about "obje
fedor.indutny
2015/10/27 18:22:42
Gosh, this was an awful place to put the function
| |
| 1255 ObjectSlotCallback callback); | |
| 1256 | |
| 1254 void IterateAndMarkPointersToFromSpace(HeapObject* object, Address start, | 1257 void IterateAndMarkPointersToFromSpace(HeapObject* object, Address start, |
| 1255 Address end, bool record_slots, | 1258 Address end, bool record_slots, |
| 1256 ObjectSlotCallback callback); | 1259 ObjectSlotCallback callback); |
| 1257 | 1260 |
| 1258 // =========================================================================== | 1261 // =========================================================================== |
| 1259 // Store buffer API. ========================================================= | 1262 // Store buffer API. ========================================================= |
| 1260 // =========================================================================== | 1263 // =========================================================================== |
| 1261 | 1264 |
| 1262 // Write barrier support for address[offset] = o. | 1265 // Write barrier support for address[offset] = o. |
| 1263 INLINE(void RecordWrite(Address address, int offset)); | 1266 INLINE(void RecordWrite(Address address, int offset)); |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2734 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2732 | 2735 |
| 2733 private: | 2736 private: |
| 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2737 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2735 }; | 2738 }; |
| 2736 #endif // DEBUG | 2739 #endif // DEBUG |
| 2737 } // namespace internal | 2740 } // namespace internal |
| 2738 } // namespace v8 | 2741 } // namespace v8 |
| 2739 | 2742 |
| 2740 #endif // V8_HEAP_HEAP_H_ | 2743 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |