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

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

Issue 2699853002: Sort class IDs before training AppJIT snapshots (Closed)
Patch Set: Add DeleteAllCode Created 3 years, 10 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 | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/class_table.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 RUNTIME_VM_CLASS_TABLE_H_ 5 #ifndef RUNTIME_VM_CLASS_TABLE_H_
6 #define RUNTIME_VM_CLASS_TABLE_H_ 6 #define RUNTIME_VM_CLASS_TABLE_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void Register(const Class& cls); 178 void Register(const Class& cls);
179 179
180 void AllocateIndex(intptr_t index); 180 void AllocateIndex(intptr_t index);
181 181
182 void RegisterAt(intptr_t index, const Class& cls); 182 void RegisterAt(intptr_t index, const Class& cls);
183 183
184 #if defined(DEBUG) 184 #if defined(DEBUG)
185 void Unregister(intptr_t index); 185 void Unregister(intptr_t index);
186 #endif 186 #endif
187 187
188 #if defined(DART_PRECOMPILER)
189 void Remap(intptr_t* old_to_new_cids); 188 void Remap(intptr_t* old_to_new_cids);
190 #endif
191 189
192 void VisitObjectPointers(ObjectPointerVisitor* visitor); 190 void VisitObjectPointers(ObjectPointerVisitor* visitor);
193 191
194 void Validate(); 192 void Validate();
195 193
196 void Print(); 194 void Print();
197 195
198 // Used by the generated code. 196 // Used by the generated code.
199 static intptr_t table_offset() { return OFFSET_OF(ClassTable, table_); } 197 static intptr_t table_offset() { return OFFSET_OF(ClassTable, table_); }
200 198
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1); 264 void UpdateLiveOld(intptr_t cid, intptr_t size, intptr_t count = 1);
267 void UpdateLiveNew(intptr_t cid, intptr_t size); 265 void UpdateLiveNew(intptr_t cid, intptr_t size);
268 #endif // !PRODUCT 266 #endif // !PRODUCT
269 267
270 DISALLOW_COPY_AND_ASSIGN(ClassTable); 268 DISALLOW_COPY_AND_ASSIGN(ClassTable);
271 }; 269 };
272 270
273 } // namespace dart 271 } // namespace dart
274 272
275 #endif // RUNTIME_VM_CLASS_TABLE_H_ 273 #endif // RUNTIME_VM_CLASS_TABLE_H_
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/class_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698