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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 void set_pending_classes(const Array& value) { | 253 void set_pending_classes(const Array& value) { |
254 ASSERT(!value.IsNull()); | 254 ASSERT(!value.IsNull()); |
255 pending_classes_ = value.raw(); | 255 pending_classes_ = value.raw(); |
256 } | 256 } |
257 | 257 |
258 RawError* sticky_error() const { return sticky_error_; } | 258 RawError* sticky_error() const { return sticky_error_; } |
259 void set_sticky_error(const Error& value) { | 259 void set_sticky_error(const Error& value) { |
260 ASSERT(!value.IsNull()); | 260 ASSERT(!value.IsNull()); |
261 sticky_error_ = value.raw(); | 261 sticky_error_ = value.raw(); |
262 } | 262 } |
| 263 void clear_sticky_error() { sticky_error_ = Error::null(); } |
263 | 264 |
264 RawBool* true_value() const { return true_value_; } | 265 RawBool* true_value() const { return true_value_; } |
265 void set_true_value(const Bool& value) { true_value_ = value.raw(); } | 266 void set_true_value(const Bool& value) { true_value_ = value.raw(); } |
266 | 267 |
267 RawBool* false_value() const { return false_value_; } | 268 RawBool* false_value() const { return false_value_; } |
268 void set_false_value(const Bool& value) { false_value_ = value.raw(); } | 269 void set_false_value(const Bool& value) { false_value_ = value.raw(); } |
269 | 270 |
270 RawArray* empty_array() const { return empty_array_; } | 271 RawArray* empty_array() const { return empty_array_; } |
271 void set_empty_array(const Array& value) { empty_array_ = value.raw(); } | 272 void set_empty_array(const Array& value) { empty_array_ = value.raw(); } |
272 | 273 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 bool preallocate_objects_called_; | 353 bool preallocate_objects_called_; |
353 | 354 |
354 friend class SnapshotReader; | 355 friend class SnapshotReader; |
355 | 356 |
356 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 357 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
357 }; | 358 }; |
358 | 359 |
359 } // namespace dart | 360 } // namespace dart |
360 | 361 |
361 #endif // VM_OBJECT_STORE_H_ | 362 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |