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

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

Issue 2976723003: Eliminate dependencies on assemblers and code stubs in precompiled runtime. (Closed)
Patch Set: Eliminate precompiled runtime flag Created 3 years, 5 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 func.AddProperty("name", vm_name); 861 func.AddProperty("name", vm_name);
862 AddNameProperties(&func, vm_name, vm_name); 862 AddNameProperties(&func, vm_name, vm_name);
863 } 863 }
864 jsobj.AddPropertyF("_startAddress", "%" Px "", PayloadStart()); 864 jsobj.AddPropertyF("_startAddress", "%" Px "", PayloadStart());
865 jsobj.AddPropertyF("_endAddress", "%" Px "", PayloadStart() + Size()); 865 jsobj.AddPropertyF("_endAddress", "%" Px "", PayloadStart() + Size());
866 jsobj.AddProperty("_alive", is_alive()); 866 jsobj.AddProperty("_alive", is_alive());
867 const ObjectPool& object_pool = ObjectPool::Handle(GetObjectPool()); 867 const ObjectPool& object_pool = ObjectPool::Handle(GetObjectPool());
868 jsobj.AddProperty("_objectPool", object_pool); 868 jsobj.AddProperty("_objectPool", object_pool);
869 { 869 {
870 JSONArray jsarr(&jsobj, "_disassembly"); 870 JSONArray jsarr(&jsobj, "_disassembly");
871 #if !defined(DART_PRECOMPILED_RUNTIME)
871 if (is_alive()) { 872 if (is_alive()) {
872 // Only disassemble alive code objects. 873 // Only disassemble alive code objects.
873 DisassembleToJSONStream formatter(jsarr); 874 DisassembleToJSONStream formatter(jsarr);
874 Disassemble(&formatter); 875 Disassemble(&formatter);
875 } 876 }
877 #endif // !defined(DART_PRECOMPILED_RUNTIME)
876 } 878 }
877 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors()); 879 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors());
878 if (!descriptors.IsNull()) { 880 if (!descriptors.IsNull()) {
879 JSONObject desc(&jsobj, "_descriptors"); 881 JSONObject desc(&jsobj, "_descriptors");
880 descriptors.PrintToJSONObject(&desc, false); 882 descriptors.PrintToJSONObject(&desc, false);
881 } 883 }
882 884
883 PrintJSONInlineIntervals(&jsobj); 885 PrintJSONInlineIntervals(&jsobj);
884 } 886 }
885 887
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 jsobj.AddProperty("mirrorReferent", referent_handle); 1585 jsobj.AddProperty("mirrorReferent", referent_handle);
1584 } 1586 }
1585 1587
1586 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1588 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1587 Instance::PrintJSONImpl(stream, ref); 1589 Instance::PrintJSONImpl(stream, ref);
1588 } 1590 }
1589 1591
1590 #endif 1592 #endif
1591 1593
1592 } // namespace dart 1594 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698