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