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_OBJECT_STORE_H_ | 5 #ifndef VM_OBJECT_STORE_H_ |
6 #define VM_OBJECT_STORE_H_ | 6 #define VM_OBJECT_STORE_H_ |
7 | 7 |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 12 matching lines...) Expand all Loading... |
23 kNone = 0, | 23 kNone = 0, |
24 kAsync, | 24 kAsync, |
25 kCore, | 25 kCore, |
26 kCollection, | 26 kCollection, |
27 kConvert, | 27 kConvert, |
28 kDeveloper, | 28 kDeveloper, |
29 kInternal, | 29 kInternal, |
30 kIsolate, | 30 kIsolate, |
31 kMath, | 31 kMath, |
32 kMirrors, | 32 kMirrors, |
| 33 kProfiler, |
33 kTypedData, | 34 kTypedData, |
34 }; | 35 }; |
35 | 36 |
36 ~ObjectStore(); | 37 ~ObjectStore(); |
37 | 38 |
38 RawClass* object_class() const { | 39 RawClass* object_class() const { |
39 ASSERT(object_class_ != Object::null()); | 40 ASSERT(object_class_ != Object::null()); |
40 return object_class_; | 41 return object_class_; |
41 } | 42 } |
42 void set_object_class(const Class& value) { object_class_ = value.raw(); } | 43 void set_object_class(const Class& value) { object_class_ = value.raw(); } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 RawLibrary* async_library() const { return async_library_; } | 256 RawLibrary* async_library() const { return async_library_; } |
256 RawLibrary* builtin_library() const { return builtin_library_; } | 257 RawLibrary* builtin_library() const { return builtin_library_; } |
257 RawLibrary* core_library() const { return core_library_; } | 258 RawLibrary* core_library() const { return core_library_; } |
258 RawLibrary* collection_library() const { return collection_library_; } | 259 RawLibrary* collection_library() const { return collection_library_; } |
259 RawLibrary* convert_library() const { return convert_library_; } | 260 RawLibrary* convert_library() const { return convert_library_; } |
260 RawLibrary* developer_library() const { return developer_library_; } | 261 RawLibrary* developer_library() const { return developer_library_; } |
261 RawLibrary* internal_library() const { return internal_library_; } | 262 RawLibrary* internal_library() const { return internal_library_; } |
262 RawLibrary* isolate_library() const { return isolate_library_; } | 263 RawLibrary* isolate_library() const { return isolate_library_; } |
263 RawLibrary* math_library() const { return math_library_; } | 264 RawLibrary* math_library() const { return math_library_; } |
264 RawLibrary* mirrors_library() const { return mirrors_library_; } | 265 RawLibrary* mirrors_library() const { return mirrors_library_; } |
| 266 RawLibrary* profiler_library() const { return profiler_library_; } |
265 RawLibrary* typed_data_library() const { return typed_data_library_; } | 267 RawLibrary* typed_data_library() const { return typed_data_library_; } |
266 | 268 |
267 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { | 269 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { |
268 switch (index) { | 270 switch (index) { |
269 case kAsync: | 271 case kAsync: |
270 async_library_ = value.raw(); | 272 async_library_ = value.raw(); |
271 break; | 273 break; |
272 case kCore: | 274 case kCore: |
273 core_library_ = value.raw(); | 275 core_library_ = value.raw(); |
274 break; | 276 break; |
(...skipping 11 matching lines...) Expand all Loading... |
286 break; | 288 break; |
287 case kIsolate: | 289 case kIsolate: |
288 isolate_library_ = value.raw(); | 290 isolate_library_ = value.raw(); |
289 break; | 291 break; |
290 case kMath: | 292 case kMath: |
291 math_library_ = value.raw(); | 293 math_library_ = value.raw(); |
292 break; | 294 break; |
293 case kMirrors: | 295 case kMirrors: |
294 mirrors_library_ = value.raw(); | 296 mirrors_library_ = value.raw(); |
295 break; | 297 break; |
| 298 case kProfiler: |
| 299 profiler_library_ = value.raw(); |
| 300 break; |
296 case kTypedData: | 301 case kTypedData: |
297 typed_data_library_ = value.raw(); | 302 typed_data_library_ = value.raw(); |
298 break; | 303 break; |
299 default: | 304 default: |
300 UNREACHABLE(); | 305 UNREACHABLE(); |
301 } | 306 } |
302 } | 307 } |
303 | 308 |
304 void set_builtin_library(const Library& value) { | 309 void set_builtin_library(const Library& value) { |
305 builtin_library_ = value.raw(); | 310 builtin_library_ = value.raw(); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 RawLibrary* builtin_library_; | 488 RawLibrary* builtin_library_; |
484 RawLibrary* core_library_; | 489 RawLibrary* core_library_; |
485 RawLibrary* collection_library_; | 490 RawLibrary* collection_library_; |
486 RawLibrary* convert_library_; | 491 RawLibrary* convert_library_; |
487 RawLibrary* developer_library_; | 492 RawLibrary* developer_library_; |
488 RawLibrary* internal_library_; | 493 RawLibrary* internal_library_; |
489 RawLibrary* isolate_library_; | 494 RawLibrary* isolate_library_; |
490 RawLibrary* math_library_; | 495 RawLibrary* math_library_; |
491 RawLibrary* mirrors_library_; | 496 RawLibrary* mirrors_library_; |
492 RawLibrary* native_wrappers_library_; | 497 RawLibrary* native_wrappers_library_; |
| 498 RawLibrary* profiler_library_; |
493 RawLibrary* root_library_; | 499 RawLibrary* root_library_; |
494 RawLibrary* typed_data_library_; | 500 RawLibrary* typed_data_library_; |
495 RawGrowableObjectArray* libraries_; | 501 RawGrowableObjectArray* libraries_; |
496 RawGrowableObjectArray* pending_classes_; | 502 RawGrowableObjectArray* pending_classes_; |
497 RawGrowableObjectArray* pending_functions_; | 503 RawGrowableObjectArray* pending_functions_; |
498 RawGrowableObjectArray* pending_deferred_loads_; | 504 RawGrowableObjectArray* pending_deferred_loads_; |
499 RawGrowableObjectArray* resume_capabilities_; | 505 RawGrowableObjectArray* resume_capabilities_; |
500 RawGrowableObjectArray* exit_listeners_; | 506 RawGrowableObjectArray* exit_listeners_; |
501 RawGrowableObjectArray* error_listeners_; | 507 RawGrowableObjectArray* error_listeners_; |
502 RawError* sticky_error_; | 508 RawError* sticky_error_; |
(...skipping 11 matching lines...) Expand all Loading... |
514 } | 520 } |
515 | 521 |
516 friend class SnapshotReader; | 522 friend class SnapshotReader; |
517 | 523 |
518 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 524 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
519 }; | 525 }; |
520 | 526 |
521 } // namespace dart | 527 } // namespace dart |
522 | 528 |
523 #endif // VM_OBJECT_STORE_H_ | 529 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |