Chromium Code Reviews| Index: runtime/vm/code_generator.cc |
| =================================================================== |
| --- runtime/vm/code_generator.cc (revision 5364) |
| +++ runtime/vm/code_generator.cc (working copy) |
| @@ -1168,6 +1168,10 @@ |
| ASSERT(arguments.Count() == |
| kOptimizeInvokedFunctionRuntimeEntry.argument_count()); |
| const Function& function = Function::CheckedHandle(arguments.At(0)); |
| + if (isolate->debugger()->IsActive()) { |
|
srdjan
2012/03/13 17:11:35
Maybe add comment why we should not optimize when
hausner
2012/03/13 20:45:03
Done.
|
| + function.set_usage_counter(0); |
| + return; |
| + } |
| if (function.deoptimization_counter() >= |
| FLAG_deoptimization_counter_threshold) { |
| // TODO(srdjan): Investigate excessive deoptimization. |