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

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
438 RawBool* true_value() const { return true_value_; } 445 RawBool* true_value() const { return true_value_; }
439 void set_true_value(const Bool& value) { true_value_ = value.raw(); } 446 void set_true_value(const Bool& value) { true_value_ = value.raw(); }
440 447
441 RawBool* false_value() const { return false_value_; } 448 RawBool* false_value() const { return false_value_; }
442 void set_false_value(const Bool& value) { false_value_ = value.raw(); } 449 void set_false_value(const Bool& value) { false_value_ = value.raw(); }
443 450
444 RawContext* empty_context() const { return empty_context_; } 451 RawContext* empty_context() const { return empty_context_; }
445 void set_empty_context(const Context& value) { 452 void set_empty_context(const Context& value) {
446 empty_context_ = value.raw(); 453 empty_context_ = value.raw();
447 } 454 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 RawLibrary* math_library_; 548 RawLibrary* math_library_;
542 RawLibrary* isolate_library_; 549 RawLibrary* isolate_library_;
543 RawLibrary* mirrors_library_; 550 RawLibrary* mirrors_library_;
544 RawLibrary* scalarlist_library_; 551 RawLibrary* scalarlist_library_;
545 RawLibrary* native_wrappers_library_; 552 RawLibrary* native_wrappers_library_;
546 RawLibrary* builtin_library_; 553 RawLibrary* builtin_library_;
547 RawLibrary* root_library_; 554 RawLibrary* root_library_;
548 RawGrowableObjectArray* libraries_; 555 RawGrowableObjectArray* libraries_;
549 RawGrowableObjectArray* pending_classes_; 556 RawGrowableObjectArray* pending_classes_;
550 RawError* sticky_error_; 557 RawError* sticky_error_;
558 RawString* unhandled_exception_handler_;
559 RawString* isolate_library_uri_;
siva 2012/12/13 18:30:38 What is this isolate_library_uri_ field? It doesn'
Tom Ball 2012/12/13 19:33:22 Removed -- it was cruft from an earlier design.
551 RawContext* empty_context_; 560 RawContext* empty_context_;
552 RawInstance* stack_overflow_; 561 RawInstance* stack_overflow_;
553 RawInstance* out_of_memory_; 562 RawInstance* out_of_memory_;
554 RawArray* keyword_symbols_; 563 RawArray* keyword_symbols_;
555 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 564 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
556 565
557 friend class SnapshotReader; 566 friend class SnapshotReader;
558 567
559 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 568 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
560 }; 569 };
561 570
562 } // namespace dart 571 } // namespace dart
563 572
564 #endif // VM_OBJECT_STORE_H_ 573 #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