Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: runtime/vm/store_buffer.h

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing vm/assert.h for _macos, _win, _arm and _x64 files Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698