Chromium Code Reviews| Index: runtime/vm/store_buffer.h |
| =================================================================== |
| --- runtime/vm/store_buffer.h (revision 39568) |
| +++ runtime/vm/store_buffer.h (working copy) |
| @@ -52,6 +52,11 @@ |
| class StoreBuffer { |
| public: |
| StoreBuffer() : blocks_(new StoreBufferBlock(NULL)), full_count_(0) {} |
| + explicit StoreBuffer(bool shallow_copy) : blocks_(NULL), full_count_(0) { |
| + // The value shallow_copy is only used to select this non-allocating |
|
koda
2014/08/26 23:34:49
Consider creating a useful parameter instead, like
Ivan Posva
2014/08/27 01:00:22
Leaving this one alone as well. The need for this
|
| + // constructor. It is always expected to be true. |
| + ASSERT(shallow_copy); |
| + } |
| ~StoreBuffer(); |
| intptr_t Count() const { |