| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 RawLibrary* core_library() const { return core_library_; } | 240 RawLibrary* core_library() const { return core_library_; } |
| 241 void set_core_library(const Library& value) { | 241 void set_core_library(const Library& value) { |
| 242 core_library_ = value.raw(); | 242 core_library_ = value.raw(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 RawLibrary* core_impl_library() const { return core_impl_library_; } | 245 RawLibrary* core_impl_library() const { return core_impl_library_; } |
| 246 void set_core_impl_library(const Library& value) { | 246 void set_core_impl_library(const Library& value) { |
| 247 core_impl_library_ = value.raw(); | 247 core_impl_library_ = value.raw(); |
| 248 } | 248 } |
| 249 | 249 |
| 250 RawLibrary* isolate_library() const { |
| 251 return isolate_library_; |
| 252 } |
| 253 |
| 254 void set_isolate_library(const Library& value) { |
| 255 isolate_library_ = value.raw(); |
| 256 } |
| 257 |
| 250 RawLibrary* native_wrappers_library() const { | 258 RawLibrary* native_wrappers_library() const { |
| 251 return native_wrappers_library_; | 259 return native_wrappers_library_; |
| 252 } | 260 } |
| 253 void set_native_wrappers_library(const Library& value) { | 261 void set_native_wrappers_library(const Library& value) { |
| 254 native_wrappers_library_ = value.raw(); | 262 native_wrappers_library_ = value.raw(); |
| 255 } | 263 } |
| 256 | 264 |
| 257 RawLibrary* root_library() const { return root_library_; } | 265 RawLibrary* root_library() const { return root_library_; } |
| 258 void set_root_library(const Library& value) { | 266 void set_root_library(const Library& value) { |
| 259 root_library_ = value.raw(); | 267 root_library_ = value.raw(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 RawClass* external_byte_array_class_; | 359 RawClass* external_byte_array_class_; |
| 352 RawClass* stacktrace_class_; | 360 RawClass* stacktrace_class_; |
| 353 RawClass* jsregexp_class_; | 361 RawClass* jsregexp_class_; |
| 354 RawBool* true_value_; | 362 RawBool* true_value_; |
| 355 RawBool* false_value_; | 363 RawBool* false_value_; |
| 356 RawArray* empty_array_; | 364 RawArray* empty_array_; |
| 357 RawArray* symbol_table_; | 365 RawArray* symbol_table_; |
| 358 RawArray* canonical_type_arguments_; | 366 RawArray* canonical_type_arguments_; |
| 359 RawLibrary* core_library_; | 367 RawLibrary* core_library_; |
| 360 RawLibrary* core_impl_library_; | 368 RawLibrary* core_impl_library_; |
| 369 RawLibrary* isolate_library_; |
| 361 RawLibrary* native_wrappers_library_; | 370 RawLibrary* native_wrappers_library_; |
| 362 RawLibrary* root_library_; | 371 RawLibrary* root_library_; |
| 363 RawLibrary* registered_libraries_; | 372 RawLibrary* registered_libraries_; |
| 364 RawArray* pending_classes_; | 373 RawArray* pending_classes_; |
| 365 RawError* sticky_error_; | 374 RawError* sticky_error_; |
| 366 RawContext* empty_context_; | 375 RawContext* empty_context_; |
| 367 RawInstance* stack_overflow_; | 376 RawInstance* stack_overflow_; |
| 368 RawInstance* out_of_memory_; | 377 RawInstance* out_of_memory_; |
| 369 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 378 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } |
| 370 | 379 |
| 371 bool preallocate_objects_called_; | 380 bool preallocate_objects_called_; |
| 372 | 381 |
| 373 friend class SnapshotReader; | 382 friend class SnapshotReader; |
| 374 | 383 |
| 375 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 384 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 376 }; | 385 }; |
| 377 | 386 |
| 378 } // namespace dart | 387 } // namespace dart |
| 379 | 388 |
| 380 #endif // VM_OBJECT_STORE_H_ | 389 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |