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

Unified Diff: runtime/vm/object.cc

Issue 11282003: Trace when disabling optimized code (--trace-disabling-optimized-code) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/compiler.cc ('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
===================================================================
--- runtime/vm/object.cc (revision 14033)
+++ runtime/vm/object.cc (working copy)
@@ -43,6 +43,8 @@
DEFINE_FLAG(bool, show_internal_names, false,
"Show names of internal classes (e.g. \"OneByteString\") in error messages "
"instead of showing the corresponding interface names (e.g. \"String\")");
+DEFINE_FLAG(bool, trace_disabling_optimized_code, false,
+ "Trace disabling optimized code.");
DECLARE_FLAG(bool, trace_compiler);
DECLARE_FLAG(bool, eliminate_type_checks);
DECLARE_FLAG(bool, enable_type_checks);
@@ -3017,6 +3019,11 @@
void Function::SwitchToUnoptimizedCode() const {
ASSERT(HasOptimizedCode());
+ if (FLAG_trace_disabling_optimized_code) {
+ OS::Print("Disabling optimized code: '%s' entry: %#"Px"\n",
+ ToFullyQualifiedCString(),
+ Code::Handle(CurrentCode()).EntryPoint());
Ivan Posva 2012/10/24 20:27:03 Pull this out to const Code& current_code = Code::
srdjan 2012/10/24 20:29:32 Done.
+ }
// Patch entry of the optimized code.
CodePatcher::PatchEntry(Code::Handle(CurrentCode()));
// Use previously compiled unoptimized code.
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698