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

Unified Diff: runtime/vm/object.cc

Issue 266043004: Small cleanup to Code and Profiler pages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 0de366fd2906a61d189a8fd2bd4fd05bc5006740..6255d2a840ec663eeec6b35534a7547db2bb5432 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -11739,14 +11739,13 @@ void Code::PrintJSONImpl(JSONStream* stream, bool ref) const {
EntryPoint());
jsobj.AddPropertyF("start", "%" Px "", EntryPoint());
jsobj.AddPropertyF("end", "%" Px "", EntryPoint() + Size());
- jsobj.AddProperty("is_optimized", is_optimized());
- jsobj.AddProperty("is_alive", is_alive());
+ jsobj.AddProperty("isOptimized", is_optimized());
+ jsobj.AddProperty("isAlive", is_alive());
jsobj.AddProperty("kind", "Dart");
const String& name = String::Handle(Name());
const String& pretty_name = String::Handle(PrettyName());
- const char* name_prefix = is_optimized() ? "*" : "";
- jsobj.AddPropertyF("name", "%s%s", name_prefix, name.ToCString());
- jsobj.AddPropertyF("user_name", "%s%s", name_prefix, pretty_name.ToCString());
+ jsobj.AddProperty("name", name.ToCString());
+ jsobj.AddProperty("user_name", pretty_name.ToCString());
const Object& obj = Object::Handle(owner());
if (obj.IsFunction()) {
jsobj.AddProperty("function", obj);
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698