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, | |
34 kTypedData, | 33 kTypedData, |
35 kVMService, | 34 kVMService, |
36 }; | 35 }; |
37 | 36 |
38 ~ObjectStore(); | 37 ~ObjectStore(); |
39 | 38 |
40 RawClass* object_class() const { | 39 RawClass* object_class() const { |
41 ASSERT(object_class_ != Object::null()); | 40 ASSERT(object_class_ != Object::null()); |
42 return object_class_; | 41 return object_class_; |
43 } | 42 } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 RawLibrary* async_library() const { return async_library_; } | 256 RawLibrary* async_library() const { return async_library_; } |
258 RawLibrary* builtin_library() const { return builtin_library_; } | 257 RawLibrary* builtin_library() const { return builtin_library_; } |
259 RawLibrary* core_library() const { return core_library_; } | 258 RawLibrary* core_library() const { return core_library_; } |
260 RawLibrary* collection_library() const { return collection_library_; } | 259 RawLibrary* collection_library() const { return collection_library_; } |
261 RawLibrary* convert_library() const { return convert_library_; } | 260 RawLibrary* convert_library() const { return convert_library_; } |
262 RawLibrary* developer_library() const { return developer_library_; } | 261 RawLibrary* developer_library() const { return developer_library_; } |
263 RawLibrary* internal_library() const { return internal_library_; } | 262 RawLibrary* internal_library() const { return internal_library_; } |
264 RawLibrary* isolate_library() const { return isolate_library_; } | 263 RawLibrary* isolate_library() const { return isolate_library_; } |
265 RawLibrary* math_library() const { return math_library_; } | 264 RawLibrary* math_library() const { return math_library_; } |
266 RawLibrary* mirrors_library() const { return mirrors_library_; } | 265 RawLibrary* mirrors_library() const { return mirrors_library_; } |
267 RawLibrary* profiler_library() const { return profiler_library_; } | |
268 RawLibrary* typed_data_library() const { return typed_data_library_; } | 266 RawLibrary* typed_data_library() const { return typed_data_library_; } |
269 RawLibrary* vmservice_library() const { return vmservice_library_; } | 267 RawLibrary* vmservice_library() const { return vmservice_library_; } |
270 | 268 |
271 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { | 269 void set_bootstrap_library(BootstrapLibraryId index, const Library& value) { |
272 switch (index) { | 270 switch (index) { |
273 case kAsync: | 271 case kAsync: |
274 async_library_ = value.raw(); | 272 async_library_ = value.raw(); |
275 break; | 273 break; |
276 case kCore: | 274 case kCore: |
277 core_library_ = value.raw(); | 275 core_library_ = value.raw(); |
(...skipping 12 matching lines...) Expand all Loading... |
290 break; | 288 break; |
291 case kIsolate: | 289 case kIsolate: |
292 isolate_library_ = value.raw(); | 290 isolate_library_ = value.raw(); |
293 break; | 291 break; |
294 case kMath: | 292 case kMath: |
295 math_library_ = value.raw(); | 293 math_library_ = value.raw(); |
296 break; | 294 break; |
297 case kMirrors: | 295 case kMirrors: |
298 mirrors_library_ = value.raw(); | 296 mirrors_library_ = value.raw(); |
299 break; | 297 break; |
300 case kProfiler: | |
301 profiler_library_ = value.raw(); | |
302 break; | |
303 case kTypedData: | 298 case kTypedData: |
304 typed_data_library_ = value.raw(); | 299 typed_data_library_ = value.raw(); |
305 break; | 300 break; |
306 case kVMService: | 301 case kVMService: |
307 vmservice_library_ = value.raw(); | 302 vmservice_library_ = value.raw(); |
308 break; | 303 break; |
309 default: | 304 default: |
310 UNREACHABLE(); | 305 UNREACHABLE(); |
311 } | 306 } |
312 } | 307 } |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 RawLibrary* builtin_library_; | 510 RawLibrary* builtin_library_; |
516 RawLibrary* core_library_; | 511 RawLibrary* core_library_; |
517 RawLibrary* collection_library_; | 512 RawLibrary* collection_library_; |
518 RawLibrary* convert_library_; | 513 RawLibrary* convert_library_; |
519 RawLibrary* developer_library_; | 514 RawLibrary* developer_library_; |
520 RawLibrary* internal_library_; | 515 RawLibrary* internal_library_; |
521 RawLibrary* isolate_library_; | 516 RawLibrary* isolate_library_; |
522 RawLibrary* math_library_; | 517 RawLibrary* math_library_; |
523 RawLibrary* mirrors_library_; | 518 RawLibrary* mirrors_library_; |
524 RawLibrary* native_wrappers_library_; | 519 RawLibrary* native_wrappers_library_; |
525 RawLibrary* profiler_library_; | |
526 RawLibrary* root_library_; | 520 RawLibrary* root_library_; |
527 RawLibrary* typed_data_library_; | 521 RawLibrary* typed_data_library_; |
528 RawLibrary* vmservice_library_; | 522 RawLibrary* vmservice_library_; |
529 RawGrowableObjectArray* libraries_; | 523 RawGrowableObjectArray* libraries_; |
530 RawGrowableObjectArray* pending_classes_; | 524 RawGrowableObjectArray* pending_classes_; |
531 RawGrowableObjectArray* pending_functions_; | 525 RawGrowableObjectArray* pending_functions_; |
532 RawGrowableObjectArray* pending_deferred_loads_; | 526 RawGrowableObjectArray* pending_deferred_loads_; |
533 RawGrowableObjectArray* resume_capabilities_; | 527 RawGrowableObjectArray* resume_capabilities_; |
534 RawGrowableObjectArray* exit_listeners_; | 528 RawGrowableObjectArray* exit_listeners_; |
535 RawGrowableObjectArray* error_listeners_; | 529 RawGrowableObjectArray* error_listeners_; |
(...skipping 21 matching lines...) Expand all Loading... |
557 friend class FullSnapshotWriter; | 551 friend class FullSnapshotWriter; |
558 friend class SnapshotReader; | 552 friend class SnapshotReader; |
559 friend class VmIsolateSnapshotReader; | 553 friend class VmIsolateSnapshotReader; |
560 | 554 |
561 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 555 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
562 }; | 556 }; |
563 | 557 |
564 } // namespace dart | 558 } // namespace dart |
565 | 559 |
566 #endif // VM_OBJECT_STORE_H_ | 560 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |