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

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

Issue 11442024: Unify specification of file open, close, and write callbacks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Print heap sizes. 151 // Print heap sizes.
152 void PrintSizes() const; 152 void PrintSizes() const;
153 153
154 // Returns the [lowest, highest) addresses in the heap. 154 // Returns the [lowest, highest) addresses in the heap.
155 void StartEndAddress(uword* start, uword* end) const; 155 void StartEndAddress(uword* start, uword* end) const;
156 156
157 ObjectSet* CreateAllocatedObjectSet() const; 157 ObjectSet* CreateAllocatedObjectSet() const;
158 158
159 // Generates a profile of the current and VM isolate heaps. 159 // Generates a profile of the current and VM isolate heaps.
160 void Profile(Dart_HeapProfileWriteCallback callback, void* stream) const; 160 void Profile(Dart_FileWriteCallback callback, void* stream) const;
161 161
162 static const char* GCReasonToString(GCReason gc_reason); 162 static const char* GCReasonToString(GCReason gc_reason);
163 163
164 // Associates a peer with an object. If an object has a peer, it is 164 // Associates a peer with an object. If an object has a peer, it is
165 // replaced. A value of NULL disassociate an object from its peer. 165 // replaced. A value of NULL disassociate an object from its peer.
166 void SetPeer(RawObject* raw_obj, void* peer); 166 void SetPeer(RawObject* raw_obj, void* peer);
167 167
168 // Retrieves the peer associated with an object. Returns NULL if 168 // Retrieves the peer associated with an object. Returns NULL if
169 // there is no association. 169 // there is no association.
170 void* GetPeer(RawObject* raw_obj); 170 void* GetPeer(RawObject* raw_obj);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 public: 203 public:
204 NoGCScope() {} 204 NoGCScope() {}
205 private: 205 private:
206 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 206 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
207 }; 207 };
208 #endif // defined(DEBUG) 208 #endif // defined(DEBUG)
209 209
210 } // namespace dart 210 } // namespace dart
211 211
212 #endif // VM_HEAP_H_ 212 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698