| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 RawLibrary* collection_library() const { return collection_library_; } | 260 RawLibrary* collection_library() const { return collection_library_; } |
| 261 RawLibrary* collection_dev_library() const { | 261 RawLibrary* collection_dev_library() const { |
| 262 return collection_dev_library_; | 262 return collection_dev_library_; |
| 263 } | 263 } |
| 264 RawLibrary* crypto_library() const { return crypto_library_; } | 264 RawLibrary* crypto_library() const { return crypto_library_; } |
| 265 RawLibrary* isolate_library() const { return isolate_library_; } | 265 RawLibrary* isolate_library() const { return isolate_library_; } |
| 266 RawLibrary* json_library() const { return json_library_; } | 266 RawLibrary* json_library() const { return json_library_; } |
| 267 RawLibrary* math_library() const { return math_library_; } | 267 RawLibrary* math_library() const { return math_library_; } |
| 268 RawLibrary* mirrors_library() const { return mirrors_library_; } | 268 RawLibrary* mirrors_library() const { return mirrors_library_; } |
| 269 RawLibrary* typed_data_library() const { return typed_data_library_; } | 269 RawLibrary* typed_data_library() const { return typed_data_library_; } |
| 270 RawLibrary* uri_library() const { return uri_library_; } | |
| 271 RawLibrary* utf_library() const { return utf_library_; } | 270 RawLibrary* utf_library() const { return utf_library_; } |
| 272 void set_bootstrap_library(intptr_t index, const Library& value) { | 271 void set_bootstrap_library(intptr_t index, const Library& value) { |
| 273 switch (index) { | 272 switch (index) { |
| 274 case kAsync: | 273 case kAsync: |
| 275 async_library_ = value.raw(); | 274 async_library_ = value.raw(); |
| 276 break; | 275 break; |
| 277 case kCore: | 276 case kCore: |
| 278 core_library_ = value.raw(); | 277 core_library_ = value.raw(); |
| 279 break; | 278 break; |
| 280 case kCollection: | 279 case kCollection: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 297 break; | 296 break; |
| 298 case kMirrors: | 297 case kMirrors: |
| 299 mirrors_library_ = value.raw(); | 298 mirrors_library_ = value.raw(); |
| 300 break; | 299 break; |
| 301 case kTypedData: | 300 case kTypedData: |
| 302 typed_data_library_ = value.raw(); | 301 typed_data_library_ = value.raw(); |
| 303 break; | 302 break; |
| 304 case kUtf: | 303 case kUtf: |
| 305 utf_library_ = value.raw(); | 304 utf_library_ = value.raw(); |
| 306 break; | 305 break; |
| 307 case kUri: | |
| 308 uri_library_ = value.raw(); | |
| 309 break; | |
| 310 default: | 306 default: |
| 311 UNREACHABLE(); | 307 UNREACHABLE(); |
| 312 } | 308 } |
| 313 } | 309 } |
| 314 | 310 |
| 315 void set_builtin_library(const Library& value) { | 311 void set_builtin_library(const Library& value) { |
| 316 builtin_library_ = value.raw(); | 312 builtin_library_ = value.raw(); |
| 317 } | 313 } |
| 318 | 314 |
| 319 RawLibrary* native_wrappers_library() const { | 315 RawLibrary* native_wrappers_library() const { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 RawLibrary* collection_library_; | 460 RawLibrary* collection_library_; |
| 465 RawLibrary* collection_dev_library_; | 461 RawLibrary* collection_dev_library_; |
| 466 RawLibrary* crypto_library_; | 462 RawLibrary* crypto_library_; |
| 467 RawLibrary* isolate_library_; | 463 RawLibrary* isolate_library_; |
| 468 RawLibrary* json_library_; | 464 RawLibrary* json_library_; |
| 469 RawLibrary* math_library_; | 465 RawLibrary* math_library_; |
| 470 RawLibrary* mirrors_library_; | 466 RawLibrary* mirrors_library_; |
| 471 RawLibrary* native_wrappers_library_; | 467 RawLibrary* native_wrappers_library_; |
| 472 RawLibrary* root_library_; | 468 RawLibrary* root_library_; |
| 473 RawLibrary* typed_data_library_; | 469 RawLibrary* typed_data_library_; |
| 474 RawLibrary* uri_library_; | |
| 475 RawLibrary* utf_library_; | 470 RawLibrary* utf_library_; |
| 476 RawGrowableObjectArray* libraries_; | 471 RawGrowableObjectArray* libraries_; |
| 477 RawGrowableObjectArray* pending_classes_; | 472 RawGrowableObjectArray* pending_classes_; |
| 478 RawError* sticky_error_; | 473 RawError* sticky_error_; |
| 479 RawString* unhandled_exception_handler_; | 474 RawString* unhandled_exception_handler_; |
| 480 RawContext* empty_context_; | 475 RawContext* empty_context_; |
| 481 RawInstance* stack_overflow_; | 476 RawInstance* stack_overflow_; |
| 482 RawInstance* out_of_memory_; | 477 RawInstance* out_of_memory_; |
| 483 RawStacktrace* preallocated_stack_trace_; | 478 RawStacktrace* preallocated_stack_trace_; |
| 484 RawArray* keyword_symbols_; | 479 RawArray* keyword_symbols_; |
| 485 RawFunction* receive_port_create_function_; | 480 RawFunction* receive_port_create_function_; |
| 486 RawFunction* lookup_receive_port_function_; | 481 RawFunction* lookup_receive_port_function_; |
| 487 RawFunction* handle_message_function_; | 482 RawFunction* handle_message_function_; |
| 488 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 483 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 489 | 484 |
| 490 friend class SnapshotReader; | 485 friend class SnapshotReader; |
| 491 | 486 |
| 492 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 487 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 493 }; | 488 }; |
| 494 | 489 |
| 495 } // namespace dart | 490 } // namespace dart |
| 496 | 491 |
| 497 #endif // VM_OBJECT_STORE_H_ | 492 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |