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

Unified Diff: runtime/vm/deferred_objects.cc

Issue 658773002: Fix crash with --trace-deoptimization-verbose and tweak formatting. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « no previous file | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deferred_objects.cc
===================================================================
--- runtime/vm/deferred_objects.cc (revision 41128)
+++ runtime/vm/deferred_objects.cc (working copy)
@@ -88,9 +88,11 @@
DeferredObject* obj = deopt_context->GetDeferredObject(index());
*slot() = obj->object();
if (FLAG_trace_deoptimization_verbose) {
- OS::PrintErr("writing instance ref at %" Px ": %s\n",
- reinterpret_cast<uword>(slot()),
- Instance::Handle(obj->object()).ToCString());
+ const Class& cls = Class::Handle(Isolate::Current()->class_table()->At(
+ Object::Handle(obj->object()).GetClassId()));
+ OS::PrintErr("writing instance of class %s ref at %" Px ".\n",
+ cls.ToCString(),
+ reinterpret_cast<uword>(slot()));
}
}
« no previous file with comments | « no previous file | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698