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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 core_impl_library_ = value.raw(); | 247 core_impl_library_ = value.raw(); |
248 } | 248 } |
249 | 249 |
250 RawLibrary* native_wrappers_library() const { | 250 RawLibrary* native_wrappers_library() const { |
251 return native_wrappers_library_; | 251 return native_wrappers_library_; |
252 } | 252 } |
253 void set_native_wrappers_library(const Library& value) { | 253 void set_native_wrappers_library(const Library& value) { |
254 native_wrappers_library_ = value.raw(); | 254 native_wrappers_library_ = value.raw(); |
255 } | 255 } |
256 | 256 |
| 257 RawLibrary* mirrors_library() const { return mirrors_library_; } |
| 258 void set_mirrors_library(const Library& value) { |
| 259 mirrors_library_ = value.raw(); |
| 260 } |
| 261 |
257 RawLibrary* root_library() const { return root_library_; } | 262 RawLibrary* root_library() const { return root_library_; } |
258 void set_root_library(const Library& value) { | 263 void set_root_library(const Library& value) { |
259 root_library_ = value.raw(); | 264 root_library_ = value.raw(); |
260 } | 265 } |
261 | 266 |
262 // Returns head of list of registered libraries. | 267 // Returns head of list of registered libraries. |
263 RawLibrary* registered_libraries() const { return registered_libraries_; } | 268 RawLibrary* registered_libraries() const { return registered_libraries_; } |
264 void set_registered_libraries(const Library& value) { | 269 void set_registered_libraries(const Library& value) { |
265 registered_libraries_ = value.raw(); | 270 registered_libraries_ = value.raw(); |
266 } | 271 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 RawClass* stacktrace_class_; | 357 RawClass* stacktrace_class_; |
353 RawClass* jsregexp_class_; | 358 RawClass* jsregexp_class_; |
354 RawBool* true_value_; | 359 RawBool* true_value_; |
355 RawBool* false_value_; | 360 RawBool* false_value_; |
356 RawArray* empty_array_; | 361 RawArray* empty_array_; |
357 RawArray* symbol_table_; | 362 RawArray* symbol_table_; |
358 RawArray* canonical_type_arguments_; | 363 RawArray* canonical_type_arguments_; |
359 RawLibrary* core_library_; | 364 RawLibrary* core_library_; |
360 RawLibrary* core_impl_library_; | 365 RawLibrary* core_impl_library_; |
361 RawLibrary* native_wrappers_library_; | 366 RawLibrary* native_wrappers_library_; |
| 367 RawLibrary* mirrors_library_; |
362 RawLibrary* root_library_; | 368 RawLibrary* root_library_; |
363 RawLibrary* registered_libraries_; | 369 RawLibrary* registered_libraries_; |
364 RawArray* pending_classes_; | 370 RawArray* pending_classes_; |
365 RawError* sticky_error_; | 371 RawError* sticky_error_; |
366 RawContext* empty_context_; | 372 RawContext* empty_context_; |
367 RawInstance* stack_overflow_; | 373 RawInstance* stack_overflow_; |
368 RawInstance* out_of_memory_; | 374 RawInstance* out_of_memory_; |
369 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 375 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } |
370 | 376 |
371 bool preallocate_objects_called_; | 377 bool preallocate_objects_called_; |
372 | 378 |
373 friend class SnapshotReader; | 379 friend class SnapshotReader; |
374 | 380 |
375 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 381 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
376 }; | 382 }; |
377 | 383 |
378 } // namespace dart | 384 } // namespace dart |
379 | 385 |
380 #endif // VM_OBJECT_STORE_H_ | 386 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |