| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 197 } |
| 198 | 198 |
| 199 // Returns head of list of registered libraries. | 199 // Returns head of list of registered libraries. |
| 200 RawLibrary* registered_libraries() const { return registered_libraries_; } | 200 RawLibrary* registered_libraries() const { return registered_libraries_; } |
| 201 void set_registered_libraries(const Library& value) { | 201 void set_registered_libraries(const Library& value) { |
| 202 registered_libraries_ = value.raw(); | 202 registered_libraries_ = value.raw(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 RawArray* pending_classes() const { return pending_classes_; } | 205 RawArray* pending_classes() const { return pending_classes_; } |
| 206 void set_pending_classes(const Array& value) { | 206 void set_pending_classes(const Array& value) { |
| 207 ASSERT(!value.IsNull()); |
| 207 pending_classes_ = value.raw(); | 208 pending_classes_ = value.raw(); |
| 208 } | 209 } |
| 209 | 210 |
| 210 RawString* sticky_error() const { return sticky_error_; } | 211 RawString* sticky_error() const { return sticky_error_; } |
| 211 void set_sticky_error(const String& value) { | 212 void set_sticky_error(const String& value) { |
| 212 ASSERT(!value.IsNull()); | 213 ASSERT(!value.IsNull()); |
| 213 sticky_error_ = value.raw(); | 214 sticky_error_ = value.raw(); |
| 214 } | 215 } |
| 215 | 216 |
| 216 RawBool* true_value() const { return true_value_; } | 217 RawBool* true_value() const { return true_value_; } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } | 281 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } |
| 281 | 282 |
| 282 friend class SnapshotReader; | 283 friend class SnapshotReader; |
| 283 | 284 |
| 284 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 285 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 } // namespace dart | 288 } // namespace dart |
| 288 | 289 |
| 289 #endif // VM_OBJECT_STORE_H_ | 290 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |