Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: runtime/vm/object_store.h

Issue 1448463004: Cleanups. More mutator thread asserts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« runtime/vm/compiler.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
siva 2015/11/14 01:44:38 TODO(asiva)
srdjan 2015/11/16 17:25:51 Done.
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
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_
OLDNEW
« runtime/vm/compiler.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698