| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_SNAPSHOT_H_ | 5 #ifndef VM_SNAPSHOT_H_ |
| 6 #define VM_SNAPSHOT_H_ | 6 #define VM_SNAPSHOT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/bitfield.h" | 10 #include "vm/bitfield.h" |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 ASSERT(forward_list_ == NULL); | 967 ASSERT(forward_list_ == NULL); |
| 968 forward_list_ = forward_list; | 968 forward_list_ = forward_list; |
| 969 } | 969 } |
| 970 void ResetForwardList() { | 970 void ResetForwardList() { |
| 971 ASSERT(forward_list_ != NULL); | 971 ASSERT(forward_list_ != NULL); |
| 972 forward_list_ = NULL; | 972 forward_list_ = NULL; |
| 973 } | 973 } |
| 974 | 974 |
| 975 Thread* thread() const { return thread_; } | 975 Thread* thread() const { return thread_; } |
| 976 Isolate* isolate() const { return thread_->isolate(); } | 976 Isolate* isolate() const { return thread_->isolate(); } |
| 977 Zone* zone() const { return thread_->zone(); } |
| 977 ObjectStore* object_store() const { return object_store_; } | 978 ObjectStore* object_store() const { return object_store_; } |
| 978 | 979 |
| 979 private: | 980 private: |
| 980 Snapshot::Kind kind_; | 981 Snapshot::Kind kind_; |
| 981 Thread* thread_; | 982 Thread* thread_; |
| 982 ObjectStore* object_store_; // Object store for common classes. | 983 ObjectStore* object_store_; // Object store for common classes. |
| 983 ClassTable* class_table_; // Class table for the class index to class lookup. | 984 ClassTable* class_table_; // Class table for the class index to class lookup. |
| 984 ForwardList* forward_list_; | 985 ForwardList* forward_list_; |
| 985 InstructionsWriter* instructions_writer_; | 986 InstructionsWriter* instructions_writer_; |
| 986 Exceptions::ExceptionType exception_type_; // Exception type. | 987 Exceptions::ExceptionType exception_type_; // Exception type. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 private: | 1135 private: |
| 1135 SnapshotWriter* writer_; | 1136 SnapshotWriter* writer_; |
| 1136 bool as_references_; | 1137 bool as_references_; |
| 1137 | 1138 |
| 1138 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1139 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1139 }; | 1140 }; |
| 1140 | 1141 |
| 1141 } // namespace dart | 1142 } // namespace dart |
| 1142 | 1143 |
| 1143 #endif // VM_SNAPSHOT_H_ | 1144 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |