| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 RawArray* keyword_symbols() const { return keyword_symbols_; } | 439 RawArray* keyword_symbols() const { return keyword_symbols_; } |
| 440 void set_keyword_symbols(const Array& value) { | 440 void set_keyword_symbols(const Array& value) { |
| 441 keyword_symbols_ = value.raw(); | 441 keyword_symbols_ = value.raw(); |
| 442 } | 442 } |
| 443 void InitKeywordTable(); | 443 void InitKeywordTable(); |
| 444 | 444 |
| 445 // Visit all object pointers. | 445 // Visit all object pointers. |
| 446 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 446 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 447 | 447 |
| 448 RawType* GetType(int index); | |
| 449 int GetTypeIndex(const RawType* raw_type); | |
| 450 | |
| 451 // Called to initialize objects required by the vm but which invoke | 448 // Called to initialize objects required by the vm but which invoke |
| 452 // dart code. If an error occurs then false is returned and error | 449 // dart code. If an error occurs then false is returned and error |
| 453 // information is stored in sticky_error(). | 450 // information is stored in sticky_error(). |
| 454 bool PreallocateObjects(); | 451 bool PreallocateObjects(); |
| 455 | 452 |
| 456 static void Init(Isolate* isolate); | 453 static void Init(Isolate* isolate); |
| 457 | 454 |
| 458 private: | 455 private: |
| 459 ObjectStore(); | 456 ObjectStore(); |
| 460 | 457 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 529 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 533 | 530 |
| 534 friend class SnapshotReader; | 531 friend class SnapshotReader; |
| 535 | 532 |
| 536 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 533 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 537 }; | 534 }; |
| 538 | 535 |
| 539 } // namespace dart | 536 } // namespace dart |
| 540 | 537 |
| 541 #endif // VM_OBJECT_STORE_H_ | 538 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |