| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_STORE_BUFFER_H_ | 5 #ifndef VM_STORE_BUFFER_H_ |
| 6 #define VM_STORE_BUFFER_H_ | 6 #define VM_STORE_BUFFER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 ASSERT(top_ < kSize); | 28 ASSERT(top_ < kSize); |
| 29 pointers_[top_++] = pointer; | 29 pointers_[top_++] = pointer; |
| 30 if (top_ == kSize) { | 30 if (top_ == kSize) { |
| 31 ProcessBuffer(); | 31 ProcessBuffer(); |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 // Process this store buffer and remember its contents in the heap. | 35 // Process this store buffer and remember its contents in the heap. |
| 36 void ProcessBuffer(); | 36 void ProcessBuffer(); |
| 37 | 37 |
| 38 bool Contains(uword pointer); |
| 39 |
| 38 private: | 40 private: |
| 39 int32_t top_; | 41 int32_t top_; |
| 40 uword pointers_[kSize]; | 42 uword pointers_[kSize]; |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace dart | 45 } // namespace dart |
| 44 | 46 |
| 45 #endif // VM_STORE_BUFFER_H_ | 47 #endif // VM_STORE_BUFFER_H_ |
| OLD | NEW |