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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 void set_pending_classes(const Array& value) { | 269 void set_pending_classes(const Array& value) { |
270 ASSERT(!value.IsNull()); | 270 ASSERT(!value.IsNull()); |
271 pending_classes_ = value.raw(); | 271 pending_classes_ = value.raw(); |
272 } | 272 } |
273 | 273 |
274 RawError* sticky_error() const { return sticky_error_; } | 274 RawError* sticky_error() const { return sticky_error_; } |
275 void set_sticky_error(const Error& value) { | 275 void set_sticky_error(const Error& value) { |
276 ASSERT(!value.IsNull()); | 276 ASSERT(!value.IsNull()); |
277 sticky_error_ = value.raw(); | 277 sticky_error_ = value.raw(); |
278 } | 278 } |
279 void clear_sticky_error() { sticky_error_ = Error::null(); } | |
280 | 279 |
281 RawBool* true_value() const { return true_value_; } | 280 RawBool* true_value() const { return true_value_; } |
282 void set_true_value(const Bool& value) { true_value_ = value.raw(); } | 281 void set_true_value(const Bool& value) { true_value_ = value.raw(); } |
283 | 282 |
284 RawBool* false_value() const { return false_value_; } | 283 RawBool* false_value() const { return false_value_; } |
285 void set_false_value(const Bool& value) { false_value_ = value.raw(); } | 284 void set_false_value(const Bool& value) { false_value_ = value.raw(); } |
286 | 285 |
287 RawArray* empty_array() const { return empty_array_; } | 286 RawArray* empty_array() const { return empty_array_; } |
288 void set_empty_array(const Array& value) { empty_array_ = value.raw(); } | 287 void set_empty_array(const Array& value) { empty_array_ = value.raw(); } |
289 | 288 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 bool preallocate_objects_called_; | 370 bool preallocate_objects_called_; |
372 | 371 |
373 friend class SnapshotReader; | 372 friend class SnapshotReader; |
374 | 373 |
375 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 374 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
376 }; | 375 }; |
377 | 376 |
378 } // namespace dart | 377 } // namespace dart |
379 | 378 |
380 #endif // VM_OBJECT_STORE_H_ | 379 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |