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

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

Issue 2281263002: AOT: Reassign class ids so class hierarchies have contiguous ranges. (Closed)
Patch Set: review Created 4 years, 3 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
« no previous file with comments | « no previous file | runtime/vm/class_table.cc » ('j') | runtime/vm/class_table.cc » ('J')
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_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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void Register(const Class& cls); 184 void Register(const Class& cls);
185 185
186 void AllocateIndex(intptr_t index); 186 void AllocateIndex(intptr_t index);
187 187
188 void RegisterAt(intptr_t index, const Class& cls); 188 void RegisterAt(intptr_t index, const Class& cls);
189 189
190 #if defined(DEBUG) 190 #if defined(DEBUG)
191 void Unregister(intptr_t index); 191 void Unregister(intptr_t index);
192 #endif 192 #endif
193 193
194 #if defined(DART_PRECOMPILER)
195 void Remap(intptr_t* old_to_new_cids);
196 #endif
197
194 void VisitObjectPointers(ObjectPointerVisitor* visitor); 198 void VisitObjectPointers(ObjectPointerVisitor* visitor);
195 199
196 void Validate(); 200 void Validate();
197 201
198 void Print(); 202 void Print();
199 203
200 // Used by the generated code. 204 // Used by the generated code.
201 static intptr_t table_offset() { 205 static intptr_t table_offset() {
202 return OFFSET_OF(ClassTable, table_); 206 return OFFSET_OF(ClassTable, table_);
203 } 207 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1); 274 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1);
271 void UpdateLiveNew(intptr_t cid, intptr_t size); 275 void UpdateLiveNew(intptr_t cid, intptr_t size);
272 #endif // !PRODUCT 276 #endif // !PRODUCT
273 277
274 DISALLOW_COPY_AND_ASSIGN(ClassTable); 278 DISALLOW_COPY_AND_ASSIGN(ClassTable);
275 }; 279 };
276 280
277 } // namespace dart 281 } // namespace dart
278 282
279 #endif // VM_CLASS_TABLE_H_ 283 #endif // VM_CLASS_TABLE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_table.cc » ('j') | runtime/vm/class_table.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698