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

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

Issue 1686773002: Precompilation: drop unused types and type arguments and empty classes and libraries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « no previous file | 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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698