OLD | NEW |
---|---|
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 18 matching lines...) Expand all Loading... | |
29 void SetUp(); | 29 void SetUp(); |
30 void TearDown(); | 30 void TearDown(); |
31 | 31 |
32 static const int kStoreBufferOverflowBit = 1 << (14 + kPointerSizeLog2); | 32 static const int kStoreBufferOverflowBit = 1 << (14 + kPointerSizeLog2); |
33 static const int kStoreBufferSize = kStoreBufferOverflowBit; | 33 static const int kStoreBufferSize = kStoreBufferOverflowBit; |
34 static const int kStoreBufferLength = kStoreBufferSize / sizeof(Address); | 34 static const int kStoreBufferLength = kStoreBufferSize / sizeof(Address); |
35 | 35 |
36 // This is used to add addresses to the store buffer non-concurrently. | 36 // This is used to add addresses to the store buffer non-concurrently. |
37 inline void Mark(Address addr); | 37 inline void Mark(Address addr); |
38 | 38 |
39 void Remove(Address addr); | |
Hannes Payer (out of office)
2016/02/08 21:17:25
For completeness, leave a comment.
ulan
2016/02/09 10:14:49
Done.
| |
40 | |
39 // Slots that do not point to the ToSpace after callback invocation will be | 41 // Slots that do not point to the ToSpace after callback invocation will be |
40 // removed from the set. | 42 // removed from the set. |
41 void IteratePointersToNewSpace(ObjectSlotCallback callback); | 43 void IteratePointersToNewSpace(ObjectSlotCallback callback); |
42 | 44 |
43 void Verify(); | 45 void Verify(); |
44 | 46 |
45 // Eliminates all stale store buffer entries from the store buffer, i.e., | 47 // Eliminates all stale store buffer entries from the store buffer, i.e., |
46 // slots that are not part of live objects anymore. This method must be | 48 // slots that are not part of live objects anymore. This method must be |
47 // called after marking, when the whole transitive closure is known and | 49 // called after marking, when the whole transitive closure is known and |
48 // must be called before sweeping when mark bits are still intact. | 50 // must be called before sweeping when mark bits are still intact. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 int count; | 107 int count; |
106 }; | 108 }; |
107 | 109 |
108 Node* top_; | 110 Node* top_; |
109 }; | 111 }; |
110 | 112 |
111 } // namespace internal | 113 } // namespace internal |
112 } // namespace v8 | 114 } // namespace v8 |
113 | 115 |
114 #endif // V8_STORE_BUFFER_H_ | 116 #endif // V8_STORE_BUFFER_H_ |
OLD | NEW |