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

Side by Side Diff: vm/heap.h

Issue 10414048: Trace heap size during initialization after reading the snapshot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « vm/dart.cc ('k') | 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 uword TopAddress(); 104 uword TopAddress();
105 uword EndAddress(); 105 uword EndAddress();
106 static intptr_t new_space_offset() { return OFFSET_OF(Heap, new_space_); } 106 static intptr_t new_space_offset() { return OFFSET_OF(Heap, new_space_); }
107 107
108 // Initialize the heap and register it with the isolate. 108 // Initialize the heap and register it with the isolate.
109 static void Init(Isolate* isolate); 109 static void Init(Isolate* isolate);
110 110
111 // Verify that all pointers in the heap point to the heap. 111 // Verify that all pointers in the heap point to the heap.
112 bool Verify() const; 112 bool Verify() const;
113 113
114 // Print heap sizes.
115 void PrintSizes() const;
116
114 private: 117 private:
115 Heap(); 118 Heap();
116 119
117 uword AllocateNew(intptr_t size); 120 uword AllocateNew(intptr_t size);
118 uword AllocateOld(intptr_t size); 121 uword AllocateOld(intptr_t size);
119 uword AllocateCode(PageSpace* space, intptr_t size); 122 uword AllocateCode(PageSpace* space, intptr_t size);
120 123
121 // The different spaces used for allocation. 124 // The different spaces used for allocation.
122 Scavenger* new_space_; 125 Scavenger* new_space_;
123 PageSpace* old_space_; 126 PageSpace* old_space_;
(...skipping 17 matching lines...) Expand all
141 public: 144 public:
142 NoGCScope() {} 145 NoGCScope() {}
143 private: 146 private:
144 DISALLOW_COPY_AND_ASSIGN(NoGCScope); 147 DISALLOW_COPY_AND_ASSIGN(NoGCScope);
145 }; 148 };
146 #endif // defined(DEBUG) 149 #endif // defined(DEBUG)
147 150
148 } // namespace dart 151 } // namespace dart
149 152
150 #endif // VM_HEAP_H_ 153 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « vm/dart.cc ('k') | vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698