Chromium Code Reviews| Index: runtime/vm/code_generator.cc |
| =================================================================== |
| --- runtime/vm/code_generator.cc (revision 16761) |
| +++ runtime/vm/code_generator.cc (working copy) |
| @@ -1344,7 +1344,7 @@ |
| kOptimizeInvokedFunctionRuntimeEntry.argument_count()); |
| const intptr_t kLowInvocationCount = -100000000; |
| const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); |
| - if (isolate->debugger()->IsActive()) { |
| + if (isolate->debugger()->HasBreakpoint(function)) { |
|
srdjan
2013/01/08 18:03:57
function.HasBreakpoint() instead.
hausner
2013/01/08 18:37:57
May look nicer but it costs a superfluous call to
|
| // We cannot set breakpoints in optimized code, so do not optimize |
| // the function. |
| function.set_usage_counter(0); |