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/spaces-inl.h" |
10 #include "src/heap/store-buffer.h" | 10 #include "src/heap/store-buffer.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 old_top_ = top; | 41 old_top_ = top; |
42 old_buffer_is_sorted_ = false; | 42 old_buffer_is_sorted_ = false; |
43 old_buffer_is_filtered_ = false; | 43 old_buffer_is_filtered_ = false; |
44 if (top >= old_limit_) { | 44 if (top >= old_limit_) { |
45 DCHECK(callback_ != NULL); | 45 DCHECK(callback_ != NULL); |
46 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), | 46 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), |
47 kStoreBufferFullEvent); | 47 kStoreBufferFullEvent); |
48 } | 48 } |
49 } | 49 } |
50 } | 50 } |
51 } | 51 } // namespace internal |
52 } // namespace v8::internal | 52 } // namespace v8 |
53 | 53 |
54 #endif // V8_STORE_BUFFER_INL_H_ | 54 #endif // V8_STORE_BUFFER_INL_H_ |
OLD | NEW |