Chromium Code Reviews| 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. |