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

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

Issue 2203783002: [heap] Record references in the new code objects in heap::CopyCode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Init tmp pointer to avoid compiler warning Created 4 years, 4 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 | « no previous file | 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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 ObjectSlotCallback callback); 1122 ObjectSlotCallback callback);
1123 1123
1124 // =========================================================================== 1124 // ===========================================================================
1125 // Store buffer API. ========================================================= 1125 // Store buffer API. =========================================================
1126 // =========================================================================== 1126 // ===========================================================================
1127 1127
1128 // Write barrier support for object[offset] = o; 1128 // Write barrier support for object[offset] = o;
1129 inline void RecordWrite(Object* object, int offset, Object* o); 1129 inline void RecordWrite(Object* object, int offset, Object* o);
1130 inline void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* target); 1130 inline void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* target);
1131 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target); 1131 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* target);
1132 void RecordWritesIntoCode(Code* code);
1132 inline void RecordFixedArrayElements(FixedArray* array, int offset, 1133 inline void RecordFixedArrayElements(FixedArray* array, int offset,
1133 int length); 1134 int length);
1134 1135
1135 inline Address* store_buffer_top_address(); 1136 inline Address* store_buffer_top_address();
1136 1137
1137 void ClearRecordedSlot(HeapObject* object, Object** slot); 1138 void ClearRecordedSlot(HeapObject* object, Object** slot);
1138 void ClearRecordedSlotRange(Address start, Address end); 1139 void ClearRecordedSlotRange(Address start, Address end);
1139 1140
1140 // =========================================================================== 1141 // ===========================================================================
1141 // Incremental marking API. ================================================== 1142 // Incremental marking API. ==================================================
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2697 friend class LargeObjectSpace; 2698 friend class LargeObjectSpace;
2698 friend class NewSpace; 2699 friend class NewSpace;
2699 friend class PagedSpace; 2700 friend class PagedSpace;
2700 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2701 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2701 }; 2702 };
2702 2703
2703 } // namespace internal 2704 } // namespace internal
2704 } // namespace v8 2705 } // namespace v8
2705 2706
2706 #endif // V8_HEAP_HEAP_H_ 2707 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698