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

Unified Diff: runtime/lib/error.cc

Issue 9447028: When tracing type checks in runtime, also print the method where the type check occured. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.cc
===================================================================
--- runtime/lib/error.cc (revision 4549)
+++ runtime/lib/error.cc (working copy)
@@ -272,6 +272,12 @@
dst_name.ToCString(),
String::Handle(dst_type.Name()).ToCString());
}
+ DartFrameIterator iterator;
+ DartFrame* caller_frame = iterator.NextFrame();
+ ASSERT(caller_frame != NULL);
+ const Function& function = Function::Handle(
+ caller_frame->LookupDartFunction());
+ OS::Print(" -> Function %s\n", function.ToFullyQualifiedCString());
}
if (!is_assignable) {
const Type& src_type = Type::Handle(src_instance.GetType());
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698