| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 2ca9485fa8b53c126cc92a1e1aea5e906a77ffd4..eee120fce91f8731f88be47cd1dc8f368fef74c8 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -14288,9 +14288,10 @@ RawUnwindError* UnwindError::New(const String& message, Heap::Space space) {
|
| space);
|
| NoSafepointScope no_safepoint;
|
| result ^= raw;
|
| - result.StoreNonPointer(&result.raw_ptr()->is_user_initiated_, false);
|
| }
|
| result.set_message(message);
|
| + result.set_is_user_initiated(false);
|
| + result.set_is_vm_restart(false);
|
| return result.raw();
|
| }
|
|
|
| @@ -14305,6 +14306,11 @@ void UnwindError::set_is_user_initiated(bool value) const {
|
| }
|
|
|
|
|
| +void UnwindError::set_is_vm_restart(bool value) const {
|
| + StoreNonPointer(&raw_ptr()->is_vm_restart_, value);
|
| +}
|
| +
|
| +
|
| const char* UnwindError::ToErrorCString() const {
|
| const String& msg_str = String::Handle(message());
|
| return msg_str.ToCString();
|
| @@ -14322,6 +14328,8 @@ void UnwindError::PrintJSONImpl(JSONStream* stream, bool ref) const {
|
| jsobj.AddProperty("kind", "TerminationError");
|
| jsobj.AddServiceId(*this);
|
| jsobj.AddProperty("message", ToErrorCString());
|
| + jsobj.AddProperty("_is_user_initiated", is_user_initiated());
|
| + jsobj.AddProperty("_is_vm_restart", is_vm_restart());
|
| }
|
|
|
|
|
|
|