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

Unified Diff: runtime/vm/code_generator.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 | « runtime/lib/error.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 4549)
+++ runtime/vm/code_generator.cc (working copy)
@@ -342,6 +342,12 @@
String::Handle(instantiated_type.Name()).ToCString(),
String::Handle(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());
}
arguments.SetReturn(result);
}
« no previous file with comments | « runtime/lib/error.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698