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

Side by Side Diff: src/heap/store-buffer.h

Issue 1441453002: Avoid manual object's body traversal in GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments + removed HeapObject::ContentType() Created 5 years, 1 month 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_STORE_BUFFER_H_ 5 #ifndef V8_STORE_BUFFER_H_
6 #define V8_STORE_BUFFER_H_ 6 #define V8_STORE_BUFFER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/logging.h" 9 #include "src/base/logging.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void IteratePointersOnPage(PagedSpace* space, Page* page, 155 void IteratePointersOnPage(PagedSpace* space, Page* page,
156 RegionCallback region_callback, 156 RegionCallback region_callback,
157 ObjectSlotCallback slot_callback); 157 ObjectSlotCallback slot_callback);
158 158
159 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback); 159 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback);
160 160
161 #ifdef VERIFY_HEAP 161 #ifdef VERIFY_HEAP
162 void VerifyPointers(LargeObjectSpace* space); 162 void VerifyPointers(LargeObjectSpace* space);
163 #endif 163 #endif
164 164
165 friend class DontMoveStoreBufferEntriesScope;
166 friend class FindPointersToNewSpaceVisitor;
165 friend class StoreBufferRebuildScope; 167 friend class StoreBufferRebuildScope;
166 friend class DontMoveStoreBufferEntriesScope;
167 }; 168 };
168 169
169 170
170 class StoreBufferRebuilder { 171 class StoreBufferRebuilder {
171 public: 172 public:
172 explicit StoreBufferRebuilder(StoreBuffer* store_buffer) 173 explicit StoreBufferRebuilder(StoreBuffer* store_buffer)
173 : store_buffer_(store_buffer) {} 174 : store_buffer_(store_buffer) {}
174 175
175 void Callback(MemoryChunk* page, StoreBufferEvent event); 176 void Callback(MemoryChunk* page, StoreBufferEvent event);
176 177
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 225 }
225 226
226 private: 227 private:
227 StoreBuffer* store_buffer_; 228 StoreBuffer* store_buffer_;
228 bool stored_state_; 229 bool stored_state_;
229 }; 230 };
230 } // namespace internal 231 } // namespace internal
231 } // namespace v8 232 } // namespace v8
232 233
233 #endif // V8_STORE_BUFFER_H_ 234 #endif // V8_STORE_BUFFER_H_
OLDNEW
« src/heap/spaces.cc ('K') | « src/heap/spaces.cc ('k') | src/heap/store-buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698