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

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

Issue 10578046: - Inline the store buffer update into a stub instead of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698