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

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

Issue 11558034: Second version of support for specifying an unhandled exception callback (Closed) Base URL: http://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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 pending_classes_ = value.raw(); 428 pending_classes_ = value.raw();
429 } 429 }
430 430
431 RawError* sticky_error() const { return sticky_error_; } 431 RawError* sticky_error() const { return sticky_error_; }
432 void set_sticky_error(const Error& value) { 432 void set_sticky_error(const Error& value) {
433 ASSERT(!value.IsNull()); 433 ASSERT(!value.IsNull());
434 sticky_error_ = value.raw(); 434 sticky_error_ = value.raw();
435 } 435 }
436 void clear_sticky_error() { sticky_error_ = Error::null(); } 436 void clear_sticky_error() { sticky_error_ = Error::null(); }
437 437
438 RawString* unhandled_exception_handler() const {
439 return unhandled_exception_handler_;
440 }
441 void set_unhandled_exception_handler(const String& value) {
442 unhandled_exception_handler_ = value.raw();
443 }
444
445 RawString* isolate_library_uri() const {
446 return isolate_library_uri_;
447 }
448 void set_isolate_library_uri(const String& value) {
449 isolate_library_uri_ = value.raw();
450 }
451
438 RawBool* true_value() const { return true_value_; } 452 RawBool* true_value() const { return true_value_; }
439 void set_true_value(const Bool& value) { true_value_ = value.raw(); } 453 void set_true_value(const Bool& value) { true_value_ = value.raw(); }
440 454
441 RawBool* false_value() const { return false_value_; } 455 RawBool* false_value() const { return false_value_; }
442 void set_false_value(const Bool& value) { false_value_ = value.raw(); } 456 void set_false_value(const Bool& value) { false_value_ = value.raw(); }
443 457
444 RawContext* empty_context() const { return empty_context_; } 458 RawContext* empty_context() const { return empty_context_; }
445 void set_empty_context(const Context& value) { 459 void set_empty_context(const Context& value) {
446 empty_context_ = value.raw(); 460 empty_context_ = value.raw();
447 } 461 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 RawLibrary* math_library_; 555 RawLibrary* math_library_;
542 RawLibrary* isolate_library_; 556 RawLibrary* isolate_library_;
543 RawLibrary* mirrors_library_; 557 RawLibrary* mirrors_library_;
544 RawLibrary* scalarlist_library_; 558 RawLibrary* scalarlist_library_;
545 RawLibrary* native_wrappers_library_; 559 RawLibrary* native_wrappers_library_;
546 RawLibrary* builtin_library_; 560 RawLibrary* builtin_library_;
547 RawLibrary* root_library_; 561 RawLibrary* root_library_;
548 RawGrowableObjectArray* libraries_; 562 RawGrowableObjectArray* libraries_;
549 RawGrowableObjectArray* pending_classes_; 563 RawGrowableObjectArray* pending_classes_;
550 RawError* sticky_error_; 564 RawError* sticky_error_;
565 RawString* unhandled_exception_handler_;
566 RawString* isolate_library_uri_;
551 RawContext* empty_context_; 567 RawContext* empty_context_;
552 RawInstance* stack_overflow_; 568 RawInstance* stack_overflow_;
553 RawInstance* out_of_memory_; 569 RawInstance* out_of_memory_;
554 RawArray* keyword_symbols_; 570 RawArray* keyword_symbols_;
555 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 571 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
556 572
557 friend class SnapshotReader; 573 friend class SnapshotReader;
558 574
559 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 575 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
560 }; 576 };
561 577
562 } // namespace dart 578 } // namespace dart
563 579
564 #endif // VM_OBJECT_STORE_H_ 580 #endif // VM_OBJECT_STORE_H_
OLDNEW
« runtime/vm/isolate.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698