Chromium Code Reviews| Index: runtime/vm/code_generator.cc |
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
| index 6a5cc5b308c70dc160345c091178acfca2d654ed..ddb89efc73f1e2ae9cac47b8ca5ea69ba1fafc8a 100644 |
| --- a/runtime/vm/code_generator.cc |
| +++ b/runtime/vm/code_generator.cc |
| @@ -58,6 +58,7 @@ DEFINE_FLAG(bool, trace_type_checks, false, "Trace runtime type checks."); |
| DECLARE_FLAG(int, deoptimization_counter_threshold); |
| DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
| +DECLARE_FLAG(bool, trace_compiler); |
|
srdjan
2015/08/31 17:13:56
Alphabetical sort, please.
siva
2015/08/31 20:12:23
Done.
|
| DEFINE_FLAG(bool, use_osr, true, "Use on-stack replacement."); |
| DEFINE_FLAG(bool, trace_osr, false, "Trace attempts at on-stack replacement."); |
| @@ -1473,6 +1474,12 @@ DEFINE_RUNTIME_ENTRY(OptimizeInvokedFunction, 1) { |
| // Reset usage counter for reoptimization before calling optimizer to |
| // prevent recursive triggering of function optimization. |
| function.set_usage_counter(0); |
| + if (FLAG_trace_compiler) { |
| + if (function.HasOptimizedCode()) { |
| + ISL_Print("ReCompiling %sfunction: '%s' \n", "", |
|
srdjan
2015/08/31 17:13:56
Why the first %s ? It is always "" ?
siva
2015/08/31 20:12:23
Done.
|
| + function.ToFullyQualifiedCString()); |
| + } |
| + } |
| const Error& error = Error::Handle( |
| isolate, Compiler::CompileOptimizedFunction(thread, function)); |
| if (!error.IsNull()) { |