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

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

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | Annotate | Revision Log
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 pending_classes_ = value.raw(); 414 pending_classes_ = value.raw();
415 } 415 }
416 416
417 RawError* sticky_error() const { return sticky_error_; } 417 RawError* sticky_error() const { return sticky_error_; }
418 void set_sticky_error(const Error& value) { 418 void set_sticky_error(const Error& value) {
419 ASSERT(!value.IsNull()); 419 ASSERT(!value.IsNull());
420 sticky_error_ = value.raw(); 420 sticky_error_ = value.raw();
421 } 421 }
422 void clear_sticky_error() { sticky_error_ = Error::null(); } 422 void clear_sticky_error() { sticky_error_ = Error::null(); }
423 423
424 RawInstance* unhandled_exception_closure() const {
425 return unhandled_exception_closure_;
426 }
427 void set_unhandled_exception_closure(const Instance& value) {
428 ASSERT(!value.IsNull());
429 unhandled_exception_closure_ = value.raw();
430 }
431
424 RawBool* true_value() const { return true_value_; } 432 RawBool* true_value() const { return true_value_; }
425 void set_true_value(const Bool& value) { true_value_ = value.raw(); } 433 void set_true_value(const Bool& value) { true_value_ = value.raw(); }
426 434
427 RawBool* false_value() const { return false_value_; } 435 RawBool* false_value() const { return false_value_; }
428 void set_false_value(const Bool& value) { false_value_ = value.raw(); } 436 void set_false_value(const Bool& value) { false_value_ = value.raw(); }
429 437
430 RawContext* empty_context() const { return empty_context_; } 438 RawContext* empty_context() const { return empty_context_; }
431 void set_empty_context(const Context& value) { 439 void set_empty_context(const Context& value) {
432 empty_context_ = value.raw(); 440 empty_context_ = value.raw();
433 } 441 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 RawLibrary* math_library_; 533 RawLibrary* math_library_;
526 RawLibrary* isolate_library_; 534 RawLibrary* isolate_library_;
527 RawLibrary* mirrors_library_; 535 RawLibrary* mirrors_library_;
528 RawLibrary* scalarlist_library_; 536 RawLibrary* scalarlist_library_;
529 RawLibrary* native_wrappers_library_; 537 RawLibrary* native_wrappers_library_;
530 RawLibrary* builtin_library_; 538 RawLibrary* builtin_library_;
531 RawLibrary* root_library_; 539 RawLibrary* root_library_;
532 RawGrowableObjectArray* libraries_; 540 RawGrowableObjectArray* libraries_;
533 RawGrowableObjectArray* pending_classes_; 541 RawGrowableObjectArray* pending_classes_;
534 RawError* sticky_error_; 542 RawError* sticky_error_;
543 RawInstance* unhandled_exception_closure_;
535 RawContext* empty_context_; 544 RawContext* empty_context_;
536 RawInstance* stack_overflow_; 545 RawInstance* stack_overflow_;
537 RawInstance* out_of_memory_; 546 RawInstance* out_of_memory_;
538 RawArray* keyword_symbols_; 547 RawArray* keyword_symbols_;
539 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 548 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
540 549
541 friend class SnapshotReader; 550 friend class SnapshotReader;
542 551
543 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 552 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
544 }; 553 };
545 554
546 } // namespace dart 555 } // namespace dart
547 556
548 #endif // VM_OBJECT_STORE_H_ 557 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698