| 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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 // Iterates over all roots in the heap. | 1242 // Iterates over all roots in the heap. |
| 1243 void IterateRoots(ObjectVisitor* v, VisitMode mode); | 1243 void IterateRoots(ObjectVisitor* v, VisitMode mode); |
| 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 | |
| 1253 // from start to end within |object|. | |
| 1254 void IterateAndMarkPointersToFromSpace(HeapObject* object, Address start, | |
| 1255 Address end, bool record_slots, | |
| 1256 ObjectSlotCallback callback); | |
| 1257 | |
| 1258 // =========================================================================== | 1252 // =========================================================================== |
| 1259 // Store buffer API. ========================================================= | 1253 // Store buffer API. ========================================================= |
| 1260 // =========================================================================== | 1254 // =========================================================================== |
| 1261 | 1255 |
| 1262 // Write barrier support for address[offset] = o. | 1256 // Write barrier support for address[offset] = o. |
| 1263 INLINE(void RecordWrite(Address address, int offset)); | 1257 INLINE(void RecordWrite(Address address, int offset)); |
| 1264 | 1258 |
| 1265 // Write barrier support for address[start : start + len[ = o. | 1259 // Write barrier support for address[start : start + len[ = o. |
| 1266 INLINE(void RecordWrites(Address address, int start, int len)); | 1260 INLINE(void RecordWrites(Address address, int start, int len)); |
| 1267 | 1261 |
| (...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2725 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2732 | 2726 |
| 2733 private: | 2727 private: |
| 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2728 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2735 }; | 2729 }; |
| 2736 #endif // DEBUG | 2730 #endif // DEBUG |
| 2737 } // namespace internal | 2731 } // namespace internal |
| 2738 } // namespace v8 | 2732 } // namespace v8 |
| 2739 | 2733 |
| 2740 #endif // V8_HEAP_HEAP_H_ | 2734 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |