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

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: addressing comments 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
« no previous file with comments | « src/elements.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 void IteratePromotedObjectPointers(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 object[offset] = o; 1088 // Write barrier support for object[offset] = o;
1089 inline void RecordWrite(Object* object, int offset, Object* o); 1089 inline void RecordWrite(Object* object, int offset, Object* o);
1090 inline void RecordFixedArrayElements(FixedArray* array, int offset,
1091 int length);
1090 1092
1091 Address* store_buffer_top_address() { return store_buffer()->top_address(); } 1093 Address* store_buffer_top_address() { return store_buffer()->top_address(); }
1092 1094
1093 void ClearRecordedSlot(HeapObject* object, Object** slot); 1095 void ClearRecordedSlot(HeapObject* object, Object** slot);
1094 void ClearRecordedSlotRange(Address start, Address end); 1096 void ClearRecordedSlotRange(Address start, Address end);
1095 1097
1096 // =========================================================================== 1098 // ===========================================================================
1097 // Incremental marking API. ================================================== 1099 // Incremental marking API. ==================================================
1098 // =========================================================================== 1100 // ===========================================================================
1099 1101
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 friend class LargeObjectSpace; 2663 friend class LargeObjectSpace;
2662 friend class NewSpace; 2664 friend class NewSpace;
2663 friend class PagedSpace; 2665 friend class PagedSpace;
2664 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2666 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2665 }; 2667 };
2666 2668
2667 } // namespace internal 2669 } // namespace internal
2668 } // namespace v8 2670 } // namespace v8
2669 2671
2670 #endif // V8_HEAP_HEAP_H_ 2672 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698