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