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

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

Issue 1235843003: Make subtype test cache stub shared between isolates. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/assembler_x64.cc ('k') | runtime/vm/stub_code.h » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void RegisterAt(intptr_t index, const Class& cls); 171 void RegisterAt(intptr_t index, const Class& cls);
172 172
173 void VisitObjectPointers(ObjectPointerVisitor* visitor); 173 void VisitObjectPointers(ObjectPointerVisitor* visitor);
174 174
175 void Validate(); 175 void Validate();
176 176
177 void Print(); 177 void Print();
178 178
179 void PrintToJSONObject(JSONObject* object); 179 void PrintToJSONObject(JSONObject* object);
180 180
181 static intptr_t table_offset() { 181 static intptr_t table_offset() {
koda 2015/07/13 12:58:56 Comment belongs here now.
Florian Schneider 2015/07/13 13:06:11 Done.
182 return OFFSET_OF(ClassTable, table_); 182 return OFFSET_OF(ClassTable, table_);
183 } 183 }
184 184
185 // Called whenever a class is allocated in the runtime. 185 // Called whenever a class is allocated in the runtime.
186 void UpdateAllocatedNew(intptr_t cid, intptr_t size); 186 void UpdateAllocatedNew(intptr_t cid, intptr_t size);
187 void UpdateAllocatedOld(intptr_t cid, intptr_t size); 187 void UpdateAllocatedOld(intptr_t cid, intptr_t size);
188 188
189 // Called whenever a old GC occurs. 189 // Called whenever a old GC occurs.
190 void ResetCountersOld(); 190 void ResetCountersOld();
191 // Called whenever a new GC occurs. 191 // Called whenever a new GC occurs.
192 void ResetCountersNew(); 192 void ResetCountersNew();
193 // Called immediately after a new GC. 193 // Called immediately after a new GC.
194 void UpdatePromoted(); 194 void UpdatePromoted();
195 195
196 // Used by the generated code. 196 // Used by the generated code.
197 uword TableAddress() {
198 return reinterpret_cast<uword>(&table_);
199 }
200
201 // Used by the generated code.
202 uword PredefinedClassHeapStatsTableAddress() { 197 uword PredefinedClassHeapStatsTableAddress() {
203 return reinterpret_cast<uword>(predefined_class_heap_stats_table_); 198 return reinterpret_cast<uword>(predefined_class_heap_stats_table_);
204 } 199 }
205 200
206 // Used by generated code. 201 // Used by generated code.
207 uword ClassStatsTableAddress() { 202 uword ClassStatsTableAddress() {
208 return reinterpret_cast<uword>(&class_heap_stats_table_); 203 return reinterpret_cast<uword>(&class_heap_stats_table_);
209 } 204 }
210 205
211 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid); 206 ClassHeapStats* StatsWithUpdatedSize(intptr_t cid);
(...skipping 30 matching lines...) Expand all
242 ClassHeapStats* PreliminaryStatsAt(intptr_t cid); 237 ClassHeapStats* PreliminaryStatsAt(intptr_t cid);
243 void UpdateLiveOld(intptr_t cid, intptr_t size); 238 void UpdateLiveOld(intptr_t cid, intptr_t size);
244 void UpdateLiveNew(intptr_t cid, intptr_t size); 239 void UpdateLiveNew(intptr_t cid, intptr_t size);
245 240
246 DISALLOW_COPY_AND_ASSIGN(ClassTable); 241 DISALLOW_COPY_AND_ASSIGN(ClassTable);
247 }; 242 };
248 243
249 } // namespace dart 244 } // namespace dart
250 245
251 #endif // VM_CLASS_TABLE_H_ 246 #endif // VM_CLASS_TABLE_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698