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

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

Issue 1834373003: [heap] Add optimized RecordWrites (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding helper macro Created 4 years, 8 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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 void IteratePromotedObjectPointers(HeapObject* object, Address start, 1071 void IteratePromotedObjectPointers(HeapObject* object, Address start,
1072 Address end, bool record_slots, 1072 Address end, bool record_slots,
1073 ObjectSlotCallback callback); 1073 ObjectSlotCallback callback);
1074 1074
1075 // =========================================================================== 1075 // ===========================================================================
1076 // Store buffer API. ========================================================= 1076 // Store buffer API. =========================================================
1077 // =========================================================================== 1077 // ===========================================================================
1078 1078
1079 // Write barrier support for object[offset] = o; 1079 // Write barrier support for object[offset] = o;
1080 inline void RecordWrite(Object* object, int offset, Object* o); 1080 inline void RecordWrite(Object* object, int offset, Object* o);
1081 inline void RecordWrites(FixedArray* array, int offset, int length);
Hannes Payer (out of office) 2016/04/01 11:34:40 Let's call it RecordFixedArrayElements.
1081 1082
1082 Address* store_buffer_top_address() { 1083 Address* store_buffer_top_address() {
1083 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 1084 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
1084 } 1085 }
1085 1086
1086 void ClearRecordedSlot(HeapObject* object, Object** slot); 1087 void ClearRecordedSlot(HeapObject* object, Object** slot);
1087 void ClearRecordedSlotRange(Address start, Address end); 1088 void ClearRecordedSlotRange(Address start, Address end);
1088 1089
1089 // =========================================================================== 1090 // ===========================================================================
1090 // Incremental marking API. ================================================== 1091 // Incremental marking API. ==================================================
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 friend class LargeObjectSpace; 2655 friend class LargeObjectSpace;
2655 friend class NewSpace; 2656 friend class NewSpace;
2656 friend class PagedSpace; 2657 friend class PagedSpace;
2657 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2658 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2658 }; 2659 };
2659 2660
2660 } // namespace internal 2661 } // namespace internal
2661 } // namespace v8 2662 } // namespace v8
2662 2663
2663 #endif // V8_HEAP_HEAP_H_ 2664 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698