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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1064 | 1064 |
| 1065 // Iterate pointers of promoted objects. | 1065 // Iterate pointers of promoted objects. |
| 1066 void IteratePromotedObject(HeapObject* target, int size, | 1066 void IteratePromotedObject(HeapObject* target, int size, |
| 1067 bool was_marked_black, | 1067 bool was_marked_black, |
| 1068 ObjectSlotCallback callback); | 1068 ObjectSlotCallback callback); |
| 1069 | 1069 |
| 1070 void IteratePromotedObjectPointers(HeapObject* object, Address start, | 1070 void IteratePromotedObjectPointers(HeapObject* object, Address start, |
| 1071 Address end, bool record_slots, | 1071 Address end, bool record_slots, |
| 1072 ObjectSlotCallback callback); | 1072 ObjectSlotCallback callback); |
| 1073 | 1073 |
| 1074 // Iterates over all objects in the new space marked by MarkCompact. | |
| 1075 void IterateMarkedForScavenger(ObjectVisitor* v); | |
|
Hannes Payer (out of office)
2016/05/20 07:34:41
IterateMarkedObjects
Marcel Hlopko
2016/05/20 14:31:41
Done.
| |
| 1076 | |
| 1074 // =========================================================================== | 1077 // =========================================================================== |
| 1075 // Store buffer API. ========================================================= | 1078 // Store buffer API. ========================================================= |
| 1076 // =========================================================================== | 1079 // =========================================================================== |
| 1077 | 1080 |
| 1078 // Write barrier support for object[offset] = o; | 1081 // Write barrier support for object[offset] = o; |
| 1079 inline void RecordWrite(Object* object, int offset, Object* o); | 1082 inline void RecordWrite(Object* object, int offset, Object* o); |
| 1080 inline void RecordFixedArrayElements(FixedArray* array, int offset, | 1083 inline void RecordFixedArrayElements(FixedArray* array, int offset, |
| 1081 int length); | 1084 int length); |
| 1082 | 1085 |
| 1083 Address* store_buffer_top_address() { return store_buffer()->top_address(); } | 1086 Address* store_buffer_top_address() { return store_buffer()->top_address(); } |
| (...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2645 friend class LargeObjectSpace; | 2648 friend class LargeObjectSpace; |
| 2646 friend class NewSpace; | 2649 friend class NewSpace; |
| 2647 friend class PagedSpace; | 2650 friend class PagedSpace; |
| 2648 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2651 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2649 }; | 2652 }; |
| 2650 | 2653 |
| 2651 } // namespace internal | 2654 } // namespace internal |
| 2652 } // namespace v8 | 2655 } // namespace v8 |
| 2653 | 2656 |
| 2654 #endif // V8_HEAP_HEAP_H_ | 2657 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |