OLD | NEW |
---|---|
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_CLASS_TABLE_H_ | 5 #ifndef VM_CLASS_TABLE_H_ |
6 #define VM_CLASS_TABLE_H_ | 6 #define VM_CLASS_TABLE_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 private: | 106 private: |
107 // Recent old at start of last new GC (used to compute promoted_*). | 107 // Recent old at start of last new GC (used to compute promoted_*). |
108 intptr_t old_pre_new_gc_count_; | 108 intptr_t old_pre_new_gc_count_; |
109 intptr_t old_pre_new_gc_size_; | 109 intptr_t old_pre_new_gc_size_; |
110 }; | 110 }; |
111 | 111 |
112 | 112 |
113 class ClassTable { | 113 class ClassTable { |
114 public: | 114 public: |
115 ClassTable(); | 115 ClassTable(); |
116 explicit ClassTable(ClassTable* original); | |
koda
2014/08/26 23:34:48
const ClassTable*
And comment that stats are not
Ivan Posva
2014/08/27 01:00:21
Done.
| |
116 ~ClassTable(); | 117 ~ClassTable(); |
117 | 118 |
118 RawClass* At(intptr_t index) const { | 119 RawClass* At(intptr_t index) const { |
119 ASSERT(IsValidIndex(index)); | 120 ASSERT(IsValidIndex(index)); |
120 return table_[index]; | 121 return table_[index]; |
121 } | 122 } |
122 | 123 |
123 intptr_t IsValidIndex(intptr_t index) const { | 124 intptr_t IsValidIndex(intptr_t index) const { |
124 return (index > 0) && (index < top_); | 125 return (index > 0) && (index < top_); |
125 } | 126 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); | 195 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); |
195 void UpdateLiveOld(intptr_t cid, intptr_t size); | 196 void UpdateLiveOld(intptr_t cid, intptr_t size); |
196 void UpdateLiveNew(intptr_t cid, intptr_t size); | 197 void UpdateLiveNew(intptr_t cid, intptr_t size); |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(ClassTable); | 199 DISALLOW_COPY_AND_ASSIGN(ClassTable); |
199 }; | 200 }; |
200 | 201 |
201 } // namespace dart | 202 } // namespace dart |
202 | 203 |
203 #endif // VM_CLASS_TABLE_H_ | 204 #endif // VM_CLASS_TABLE_H_ |
OLD | NEW |