| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 RawInstance* stack_overflow() const { return stack_overflow_; } | 303 RawInstance* stack_overflow() const { return stack_overflow_; } |
| 304 void set_stack_overflow(const Instance& value) { | 304 void set_stack_overflow(const Instance& value) { |
| 305 stack_overflow_ = value.raw(); | 305 stack_overflow_ = value.raw(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 RawInstance* out_of_memory() const { return out_of_memory_; } | 308 RawInstance* out_of_memory() const { return out_of_memory_; } |
| 309 void set_out_of_memory(const Instance& value) { | 309 void set_out_of_memory(const Instance& value) { |
| 310 out_of_memory_ = value.raw(); | 310 out_of_memory_ = value.raw(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 RawArray* keyword_symbols() const { return keyword_symbols_; } |
| 314 void set_keyword_symbols(const Array& value) { |
| 315 keyword_symbols_ = value.raw(); |
| 316 } |
| 317 void InitKeywordTable(); |
| 318 |
| 313 // Visit all object pointers. | 319 // Visit all object pointers. |
| 314 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 320 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 315 | 321 |
| 316 RawClass* GetClass(int index); | 322 RawClass* GetClass(int index); |
| 317 int GetClassIndex(const RawClass* raw_class); | 323 int GetClassIndex(const RawClass* raw_class); |
| 318 RawType* GetType(int index); | 324 RawType* GetType(int index); |
| 319 int GetTypeIndex(const RawType* raw_type); | 325 int GetTypeIndex(const RawType* raw_type); |
| 320 | 326 |
| 321 // Called to initialize objects required by the vm but which invoke | 327 // Called to initialize objects required by the vm but which invoke |
| 322 // dart code. If an error occurs then false is returned and error | 328 // dart code. If an error occurs then false is returned and error |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 RawLibrary* core_impl_library_; | 374 RawLibrary* core_impl_library_; |
| 369 RawLibrary* isolate_library_; | 375 RawLibrary* isolate_library_; |
| 370 RawLibrary* native_wrappers_library_; | 376 RawLibrary* native_wrappers_library_; |
| 371 RawLibrary* root_library_; | 377 RawLibrary* root_library_; |
| 372 RawLibrary* registered_libraries_; | 378 RawLibrary* registered_libraries_; |
| 373 RawArray* pending_classes_; | 379 RawArray* pending_classes_; |
| 374 RawError* sticky_error_; | 380 RawError* sticky_error_; |
| 375 RawContext* empty_context_; | 381 RawContext* empty_context_; |
| 376 RawInstance* stack_overflow_; | 382 RawInstance* stack_overflow_; |
| 377 RawInstance* out_of_memory_; | 383 RawInstance* out_of_memory_; |
| 378 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 384 RawArray* keyword_symbols_; |
| 385 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 379 | 386 |
| 380 bool preallocate_objects_called_; | 387 bool preallocate_objects_called_; |
| 381 | 388 |
| 382 friend class SnapshotReader; | 389 friend class SnapshotReader; |
| 383 | 390 |
| 384 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 391 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 385 }; | 392 }; |
| 386 | 393 |
| 387 } // namespace dart | 394 } // namespace dart |
| 388 | 395 |
| 389 #endif // VM_OBJECT_STORE_H_ | 396 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |