| 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/bitfield.h" | 9 #include "vm/bitfield.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 ASSERT(IsValidIndex(index)); | 164 ASSERT(IsValidIndex(index)); |
| 165 return table_[index] != NULL; | 165 return table_[index] != NULL; |
| 166 } | 166 } |
| 167 | 167 |
| 168 intptr_t NumCids() const { return top_; } | 168 intptr_t NumCids() const { return top_; } |
| 169 | 169 |
| 170 void Register(const Class& cls); | 170 void Register(const Class& cls); |
| 171 | 171 |
| 172 void RegisterAt(intptr_t index, const Class& cls); | 172 void RegisterAt(intptr_t index, const Class& cls); |
| 173 | 173 |
| 174 #if defined(DEBUG) |
| 175 void Unregister(intptr_t index); |
| 176 #endif |
| 177 |
| 174 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 178 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 175 | 179 |
| 176 void Validate(); | 180 void Validate(); |
| 177 | 181 |
| 178 void Print(); | 182 void Print(); |
| 179 | 183 |
| 180 void PrintToJSONObject(JSONObject* object); | 184 void PrintToJSONObject(JSONObject* object); |
| 181 | 185 |
| 182 // Used by the generated code. | 186 // Used by the generated code. |
| 183 static intptr_t table_offset() { | 187 static intptr_t table_offset() { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); | 250 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); |
| 247 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1); | 251 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1); |
| 248 void UpdateLiveNew(intptr_t cid, intptr_t size); | 252 void UpdateLiveNew(intptr_t cid, intptr_t size); |
| 249 | 253 |
| 250 DISALLOW_COPY_AND_ASSIGN(ClassTable); | 254 DISALLOW_COPY_AND_ASSIGN(ClassTable); |
| 251 }; | 255 }; |
| 252 | 256 |
| 253 } // namespace dart | 257 } // namespace dart |
| 254 | 258 |
| 255 #endif // VM_CLASS_TABLE_H_ | 259 #endif // VM_CLASS_TABLE_H_ |
| OLD | NEW |