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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 isolate_library_ = value.raw(); | 255 isolate_library_ = value.raw(); |
256 } | 256 } |
257 | 257 |
258 RawLibrary* native_wrappers_library() const { | 258 RawLibrary* native_wrappers_library() const { |
259 return native_wrappers_library_; | 259 return native_wrappers_library_; |
260 } | 260 } |
261 void set_native_wrappers_library(const Library& value) { | 261 void set_native_wrappers_library(const Library& value) { |
262 native_wrappers_library_ = value.raw(); | 262 native_wrappers_library_ = value.raw(); |
263 } | 263 } |
264 | 264 |
| 265 RawLibrary* mirrors_library() const { return mirrors_library_; } |
| 266 void set_mirrors_library(const Library& value) { |
| 267 mirrors_library_ = value.raw(); |
| 268 } |
| 269 |
265 RawLibrary* root_library() const { return root_library_; } | 270 RawLibrary* root_library() const { return root_library_; } |
266 void set_root_library(const Library& value) { | 271 void set_root_library(const Library& value) { |
267 root_library_ = value.raw(); | 272 root_library_ = value.raw(); |
268 } | 273 } |
269 | 274 |
270 // Returns head of list of registered libraries. | 275 // Returns head of list of registered libraries. |
271 RawLibrary* registered_libraries() const { return registered_libraries_; } | 276 RawLibrary* registered_libraries() const { return registered_libraries_; } |
272 void set_registered_libraries(const Library& value) { | 277 void set_registered_libraries(const Library& value) { |
273 registered_libraries_ = value.raw(); | 278 registered_libraries_ = value.raw(); |
274 } | 279 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 RawClass* stacktrace_class_; | 371 RawClass* stacktrace_class_; |
367 RawClass* jsregexp_class_; | 372 RawClass* jsregexp_class_; |
368 RawBool* true_value_; | 373 RawBool* true_value_; |
369 RawBool* false_value_; | 374 RawBool* false_value_; |
370 RawArray* empty_array_; | 375 RawArray* empty_array_; |
371 RawArray* symbol_table_; | 376 RawArray* symbol_table_; |
372 RawArray* canonical_type_arguments_; | 377 RawArray* canonical_type_arguments_; |
373 RawLibrary* core_library_; | 378 RawLibrary* core_library_; |
374 RawLibrary* core_impl_library_; | 379 RawLibrary* core_impl_library_; |
375 RawLibrary* isolate_library_; | 380 RawLibrary* isolate_library_; |
| 381 RawLibrary* mirrors_library_; |
376 RawLibrary* native_wrappers_library_; | 382 RawLibrary* native_wrappers_library_; |
377 RawLibrary* root_library_; | 383 RawLibrary* root_library_; |
378 RawLibrary* registered_libraries_; | 384 RawLibrary* registered_libraries_; |
379 RawArray* pending_classes_; | 385 RawArray* pending_classes_; |
380 RawError* sticky_error_; | 386 RawError* sticky_error_; |
381 RawContext* empty_context_; | 387 RawContext* empty_context_; |
382 RawInstance* stack_overflow_; | 388 RawInstance* stack_overflow_; |
383 RawInstance* out_of_memory_; | 389 RawInstance* out_of_memory_; |
384 RawArray* keyword_symbols_; | 390 RawArray* keyword_symbols_; |
385 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 391 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
386 | 392 |
387 friend class SnapshotReader; | 393 friend class SnapshotReader; |
388 | 394 |
389 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 395 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
390 }; | 396 }; |
391 | 397 |
392 } // namespace dart | 398 } // namespace dart |
393 | 399 |
394 #endif // VM_OBJECT_STORE_H_ | 400 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |