| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index e9c1aaacf0b6138ba5ca8f0be5b0f51373df4c2b..182dbc04045e154af3d995e9f4d2e056a41daedd 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -14298,9 +14298,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();
|
| }
|
|
|
| @@ -14315,6 +14316,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();
|
| @@ -14332,6 +14338,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());
|
| }
|
|
|
|
|
|
|