| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 RawInstance* stack_overflow() const { return stack_overflow_; } | 295 RawInstance* stack_overflow() const { return stack_overflow_; } |
| 296 void set_stack_overflow(const Instance& value) { | 296 void set_stack_overflow(const Instance& value) { |
| 297 stack_overflow_ = value.raw(); | 297 stack_overflow_ = value.raw(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 RawInstance* out_of_memory() const { return out_of_memory_; } | 300 RawInstance* out_of_memory() const { return out_of_memory_; } |
| 301 void set_out_of_memory(const Instance& value) { | 301 void set_out_of_memory(const Instance& value) { |
| 302 out_of_memory_ = value.raw(); | 302 out_of_memory_ = value.raw(); |
| 303 } | 303 } |
| 304 | 304 |
| 305 RawArray* literal_tokens_canonical_list() const { |
| 306 return literal_tokens_canonical_list_; |
| 307 } |
| 308 void set_literal_tokens_canonical_list(const Array& value) { |
| 309 literal_tokens_canonical_list_ = value.raw(); |
| 310 } |
| 311 |
| 312 RawArray* keyword_symbols() const { return keyword_symbols_; } |
| 313 void set_keyword_symbols(const Array& value) { |
| 314 keyword_symbols_ = value.raw(); |
| 315 } |
| 316 RawObject* GetKeywordSymbol(int index); |
| 317 void SetKeywordSymbol(int index, const String& symbol); |
| 318 |
| 305 // Visit all object pointers. | 319 // Visit all object pointers. |
| 306 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 320 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 307 | 321 |
| 308 RawClass* GetClass(int index); | 322 RawClass* GetClass(int index); |
| 309 int GetClassIndex(const RawClass* raw_class); | 323 int GetClassIndex(const RawClass* raw_class); |
| 310 RawType* GetType(int index); | 324 RawType* GetType(int index); |
| 311 int GetTypeIndex(const RawType* raw_type); | 325 int GetTypeIndex(const RawType* raw_type); |
| 312 | 326 |
| 313 // Called to initialize objects required by the vm but which invoke | 327 // Called to initialize objects required by the vm but which invoke |
| 314 // 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 RawLibrary* core_library_; | 373 RawLibrary* core_library_; |
| 360 RawLibrary* core_impl_library_; | 374 RawLibrary* core_impl_library_; |
| 361 RawLibrary* native_wrappers_library_; | 375 RawLibrary* native_wrappers_library_; |
| 362 RawLibrary* root_library_; | 376 RawLibrary* root_library_; |
| 363 RawLibrary* registered_libraries_; | 377 RawLibrary* registered_libraries_; |
| 364 RawArray* pending_classes_; | 378 RawArray* pending_classes_; |
| 365 RawError* sticky_error_; | 379 RawError* sticky_error_; |
| 366 RawContext* empty_context_; | 380 RawContext* empty_context_; |
| 367 RawInstance* stack_overflow_; | 381 RawInstance* stack_overflow_; |
| 368 RawInstance* out_of_memory_; | 382 RawInstance* out_of_memory_; |
| 369 RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); } | 383 RawArray* literal_tokens_canonical_list_; |
| 384 RawArray* keyword_symbols_; |
| 385 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 370 | 386 |
| 371 bool preallocate_objects_called_; | 387 bool preallocate_objects_called_; |
| 372 | 388 |
| 373 friend class SnapshotReader; | 389 friend class SnapshotReader; |
| 374 | 390 |
| 375 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 391 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 376 }; | 392 }; |
| 377 | 393 |
| 378 } // namespace dart | 394 } // namespace dart |
| 379 | 395 |
| 380 #endif // VM_OBJECT_STORE_H_ | 396 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |