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

Side by Side Diff: runtime/vm/object_service.cc

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: Created 3 years, 9 months 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 #include "vm/disassembler.h" 6 #include "vm/disassembler.h"
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/object_store.h" 8 #include "vm/object_store.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } 990 }
991 991
992 992
993 void UnwindError::PrintJSONImpl(JSONStream* stream, bool ref) const { 993 void UnwindError::PrintJSONImpl(JSONStream* stream, bool ref) const {
994 JSONObject jsobj(stream); 994 JSONObject jsobj(stream);
995 AddCommonObjectProperties(&jsobj, "Error", ref); 995 AddCommonObjectProperties(&jsobj, "Error", ref);
996 jsobj.AddProperty("kind", "TerminationError"); 996 jsobj.AddProperty("kind", "TerminationError");
997 jsobj.AddServiceId(*this); 997 jsobj.AddServiceId(*this);
998 jsobj.AddProperty("message", ToErrorCString()); 998 jsobj.AddProperty("message", ToErrorCString());
999 jsobj.AddProperty("_is_user_initiated", is_user_initiated()); 999 jsobj.AddProperty("_is_user_initiated", is_user_initiated());
1000 jsobj.AddProperty("_is_vm_restart", is_vm_restart());
1001 } 1000 }
1002 1001
1003 1002
1004 void Instance::PrintSharedInstanceJSON(JSONObject* jsobj, bool ref) const { 1003 void Instance::PrintSharedInstanceJSON(JSONObject* jsobj, bool ref) const {
1005 AddCommonObjectProperties(jsobj, "Instance", ref); 1004 AddCommonObjectProperties(jsobj, "Instance", ref);
1006 if (ref) { 1005 if (ref) {
1007 return; 1006 return;
1008 } 1007 }
1009 1008
1010 // Add all fields in layout order, from superclass to subclass. 1009 // Add all fields in layout order, from superclass to subclass.
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 jsobj.AddProperty("mirrorReferent", referent_handle); 1582 jsobj.AddProperty("mirrorReferent", referent_handle);
1584 } 1583 }
1585 1584
1586 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1585 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1587 Instance::PrintJSONImpl(stream, ref); 1586 Instance::PrintJSONImpl(stream, ref);
1588 } 1587 }
1589 1588
1590 #endif 1589 #endif
1591 1590
1592 } // namespace dart 1591 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698