| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 38227)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -12693,6 +12693,22 @@
|
| }
|
|
|
|
|
| +RawUnhandledException* UnhandledException::New(Heap::Space space) {
|
| + ASSERT(Object::unhandled_exception_class() != Class::null());
|
| + UnhandledException& result = UnhandledException::Handle();
|
| + {
|
| + RawObject* raw = Object::Allocate(UnhandledException::kClassId,
|
| + UnhandledException::InstanceSize(),
|
| + space);
|
| + NoGCScope no_gc;
|
| + result ^= raw;
|
| + }
|
| + result.set_exception(Object::null_instance());
|
| + result.set_stacktrace(Object::null_instance());
|
| + return result.raw();
|
| +}
|
| +
|
| +
|
| void UnhandledException::set_exception(const Instance& exception) const {
|
| StorePointer(&raw_ptr()->exception_, exception.raw());
|
| }
|
|
|