| 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_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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 RawGrowableObjectArray* exit_listeners() const { | 352 RawGrowableObjectArray* exit_listeners() const { |
| 353 return exit_listeners_; | 353 return exit_listeners_; |
| 354 } | 354 } |
| 355 | 355 |
| 356 RawGrowableObjectArray* error_listeners() const { | 356 RawGrowableObjectArray* error_listeners() const { |
| 357 return error_listeners_; | 357 return error_listeners_; |
| 358 } | 358 } |
| 359 | 359 |
| 360 RawError* sticky_error() const { return sticky_error_; } | 360 RawError* sticky_error() const { return sticky_error_; } |
| 361 void set_sticky_error(const Error& value) { | 361 void set_sticky_error(const Error& value) { |
| 362 // TODO(siva): Move sticky_error_ into thread specific area. |
| 363 ASSERT(Thread::Current()->IsMutatorThread()); |
| 362 ASSERT(!value.IsNull()); | 364 ASSERT(!value.IsNull()); |
| 363 sticky_error_ = value.raw(); | 365 sticky_error_ = value.raw(); |
| 364 } | 366 } |
| 365 void clear_sticky_error() { sticky_error_ = Error::null(); } | 367 void clear_sticky_error() { sticky_error_ = Error::null(); } |
| 366 | 368 |
| 367 RawContext* empty_context() const { return empty_context_; } | 369 RawContext* empty_context() const { return empty_context_; } |
| 368 void set_empty_context(const Context& value) { | 370 void set_empty_context(const Context& value) { |
| 369 empty_context_ = value.raw(); | 371 empty_context_ = value.raw(); |
| 370 } | 372 } |
| 371 | 373 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 friend class FullSnapshotWriter; | 573 friend class FullSnapshotWriter; |
| 572 friend class SnapshotReader; | 574 friend class SnapshotReader; |
| 573 friend class VmIsolateSnapshotReader; | 575 friend class VmIsolateSnapshotReader; |
| 574 | 576 |
| 575 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 577 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 576 }; | 578 }; |
| 577 | 579 |
| 578 } // namespace dart | 580 } // namespace dart |
| 579 | 581 |
| 580 #endif // VM_OBJECT_STORE_H_ | 582 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |