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

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

Issue 991853002: Remove lazy sweeping of new space and corresponding complicated pointer updating logic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/heap/store-buffer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INL_H_ 5 #ifndef V8_STORE_BUFFER_INL_H_
6 #define V8_STORE_BUFFER_INL_H_ 6 #define V8_STORE_BUFFER_INL_H_
7 7
8 #include "src/heap/store-buffer.h" 8 #include "src/heap/store-buffer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 old_top_ = top; 42 old_top_ = top;
43 old_buffer_is_sorted_ = false; 43 old_buffer_is_sorted_ = false;
44 old_buffer_is_filtered_ = false; 44 old_buffer_is_filtered_ = false;
45 if (top >= old_limit_) { 45 if (top >= old_limit_) {
46 DCHECK(callback_ != NULL); 46 DCHECK(callback_ != NULL);
47 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), 47 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr),
48 kStoreBufferFullEvent); 48 kStoreBufferFullEvent);
49 } 49 }
50 } 50 }
51 } 51 }
52
53
54 void StoreBuffer::ClearDeadObject(HeapObject* object) {
55 Address& map_field = Memory::Address_at(object->address());
56 if (heap_->map_space()->Contains(map_field)) {
57 map_field = NULL;
58 }
59 }
60 } 52 }
61 } // namespace v8::internal 53 } // namespace v8::internal
62 54
63 #endif // V8_STORE_BUFFER_INL_H_ 55 #endif // V8_STORE_BUFFER_INL_H_
OLDNEW
« no previous file with comments | « src/heap/store-buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698