| Index: runtime/vm/code_generator.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator.cc (revision 16810)
|
| +++ 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)) {
|
| // We cannot set breakpoints in optimized code, so do not optimize
|
| // the function.
|
| function.set_usage_counter(0);
|
|
|