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

Unified Diff: runtime/vm/object_service.cc

Issue 2664143002: Revert "Debugging in kernel shaping up." (Closed)
Patch Set: Revert "Debugging in kernel shaping up." Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_service.cc
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc
index e95e8e317524b4831fa70f703777c59b022783c7..d4fc827ce49f6b8aafe568be9abe817517858b5f 100644
--- a/runtime/vm/object_service.cc
+++ b/runtime/vm/object_service.cc
@@ -408,7 +408,8 @@ void Field::PrintJSONImpl(JSONStream* stream, bool ref) const {
} else {
jsobj.AddProperty("_guardLength", guarded_list_length());
}
- const class Script& script = Script::Handle(Script());
+ const Class& origin_cls = Class::Handle(Origin());
+ const class Script& script = Script::Handle(origin_cls.script());
if (!script.IsNull()) {
jsobj.AddLocation(script, token_pos());
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698