| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void UpdateAllocatedOld(intptr_t cid, intptr_t size); | 155 void UpdateAllocatedOld(intptr_t cid, intptr_t size); |
| 156 | 156 |
| 157 // Called whenever a old GC occurs. | 157 // Called whenever a old GC occurs. |
| 158 void ResetCountersOld(); | 158 void ResetCountersOld(); |
| 159 // Called whenever a new GC occurs. | 159 // Called whenever a new GC occurs. |
| 160 void ResetCountersNew(); | 160 void ResetCountersNew(); |
| 161 // Called immediately after a new GC. | 161 // Called immediately after a new GC. |
| 162 void UpdatePromoted(); | 162 void UpdatePromoted(); |
| 163 | 163 |
| 164 // Used by the generated code. | 164 // Used by the generated code. |
| 165 uword TableAddress() { |
| 166 return reinterpret_cast<uword>(&table_); |
| 167 } |
| 168 |
| 169 // Used by the generated code. |
| 165 uword PredefinedClassHeapStatsTableAddress() { | 170 uword PredefinedClassHeapStatsTableAddress() { |
| 166 return reinterpret_cast<uword>(predefined_class_heap_stats_table_); | 171 return reinterpret_cast<uword>(predefined_class_heap_stats_table_); |
| 167 } | 172 } |
| 168 | 173 |
| 169 // Used by generated code. | 174 // Used by generated code. |
| 170 uword ClassStatsTableAddress() { | 175 uword ClassStatsTableAddress() { |
| 171 return reinterpret_cast<uword>(&class_heap_stats_table_); | 176 return reinterpret_cast<uword>(&class_heap_stats_table_); |
| 172 } | 177 } |
| 173 | 178 |
| 174 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid); | 179 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 197 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); | 202 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); |
| 198 void UpdateLiveOld(intptr_t cid, intptr_t size); | 203 void UpdateLiveOld(intptr_t cid, intptr_t size); |
| 199 void UpdateLiveNew(intptr_t cid, intptr_t size); | 204 void UpdateLiveNew(intptr_t cid, intptr_t size); |
| 200 | 205 |
| 201 DISALLOW_COPY_AND_ASSIGN(ClassTable); | 206 DISALLOW_COPY_AND_ASSIGN(ClassTable); |
| 202 }; | 207 }; |
| 203 | 208 |
| 204 } // namespace dart | 209 } // namespace dart |
| 205 | 210 |
| 206 #endif // VM_CLASS_TABLE_H_ | 211 #endif // VM_CLASS_TABLE_H_ |
| OLD | NEW |