OLD | NEW |
1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" |
9 | 10 |
10 namespace dart { | 11 namespace dart { |
11 | 12 |
12 class StoreBufferBlock { | 13 class StoreBufferBlock { |
13 public: | 14 public: |
14 // Each block contains kSize pointers. | 15 // Each block contains kSize pointers. |
15 static const int32_t kSize = 1024; | 16 static const int32_t kSize = 1024; |
16 | 17 |
17 StoreBufferBlock() : top_(0) {} | 18 StoreBufferBlock() : top_(0) {} |
18 | 19 |
(...skipping 16 matching lines...) Expand all Loading... |
35 void ProcessBuffer(); | 36 void ProcessBuffer(); |
36 | 37 |
37 private: | 38 private: |
38 int32_t top_; | 39 int32_t top_; |
39 uword pointers_[kSize]; | 40 uword pointers_[kSize]; |
40 }; | 41 }; |
41 | 42 |
42 } // namespace dart | 43 } // namespace dart |
43 | 44 |
44 #endif // VM_STORE_BUFFER_H_ | 45 #endif // VM_STORE_BUFFER_H_ |
OLD | NEW |