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

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

Issue 866383003: Fix Observatory disassembly view (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 10577 matching lines...) Expand 10 before | Expand all | Expand 10 after
10588 if (ref) { 10588 if (ref) {
10589 return; 10589 return;
10590 } 10590 }
10591 Class& cls = Class::Handle(this->clazz()); 10591 Class& cls = Class::Handle(this->clazz());
10592 jsobj->AddProperty("class", cls); 10592 jsobj->AddProperty("class", cls);
10593 jsobj->AddProperty("size", raw()->Size()); 10593 jsobj->AddProperty("size", raw()->Size());
10594 JSONArray members(jsobj, "members"); 10594 JSONArray members(jsobj, "members");
10595 Iterator iter(*this, RawPcDescriptors::kAnyKind); 10595 Iterator iter(*this, RawPcDescriptors::kAnyKind);
10596 while (iter.MoveNext()) { 10596 while (iter.MoveNext()) {
10597 JSONObject descriptor(&members); 10597 JSONObject descriptor(&members);
10598 descriptor.AddPropertyF("pc_offset", "%" Px "", iter.PcOffset()); 10598 descriptor.AddPropertyF("pcOffset", "%" Px "", iter.PcOffset());
10599 descriptor.AddProperty("kind", KindAsStr(iter.Kind())); 10599 descriptor.AddProperty("kind", KindAsStr(iter.Kind()));
10600 descriptor.AddProperty("deoptId", iter.DeoptId()); 10600 descriptor.AddProperty("deoptId", iter.DeoptId());
10601 descriptor.AddProperty("tokenPos", iter.TokenPos()); 10601 descriptor.AddProperty("tokenPos", iter.TokenPos());
10602 descriptor.AddProperty("tryIndex", iter.TryIndex()); 10602 descriptor.AddProperty("tryIndex", iter.TryIndex());
10603 } 10603 }
10604 } 10604 }
10605 10605
10606 10606
10607 void PcDescriptors::PrintJSONImpl(JSONStream* stream, bool ref) const { 10607 void PcDescriptors::PrintJSONImpl(JSONStream* stream, bool ref) const {
10608 JSONObject jsobj(stream); 10608 JSONObject jsobj(stream);
(...skipping 9917 matching lines...) Expand 10 before | Expand all | Expand 10 after
20526 return tag_label.ToCString(); 20526 return tag_label.ToCString();
20527 } 20527 }
20528 20528
20529 20529
20530 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20530 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20531 Instance::PrintJSONImpl(stream, ref); 20531 Instance::PrintJSONImpl(stream, ref);
20532 } 20532 }
20533 20533
20534 20534
20535 } // namespace dart 20535 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698