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_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/heap.h" | 8 #include "src/heap/heap.h" |
| 9 #include "src/heap/spaces-inl.h" |
9 #include "src/heap/store-buffer.h" | 10 #include "src/heap/store-buffer.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 Address StoreBuffer::TopAddress() { | 15 Address StoreBuffer::TopAddress() { |
15 return reinterpret_cast<Address>(heap_->store_buffer_top_address()); | 16 return reinterpret_cast<Address>(heap_->store_buffer_top_address()); |
16 } | 17 } |
17 | 18 |
18 | 19 |
(...skipping 24 matching lines...) Expand all Loading... |
43 DCHECK(callback_ != NULL); | 44 DCHECK(callback_ != NULL); |
44 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), | 45 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), |
45 kStoreBufferFullEvent); | 46 kStoreBufferFullEvent); |
46 } | 47 } |
47 } | 48 } |
48 } | 49 } |
49 } | 50 } |
50 } // namespace v8::internal | 51 } // namespace v8::internal |
51 | 52 |
52 #endif // V8_STORE_BUFFER_INL_H_ | 53 #endif // V8_STORE_BUFFER_INL_H_ |
OLD | NEW |