| Index: runtime/vm/flow_graph_compiler.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_compiler.cc (revision 16761)
|
| +++ runtime/vm/flow_graph_compiler.cc (working copy)
|
| @@ -184,11 +184,15 @@
|
|
|
| bool FlowGraphCompiler::CanOptimize() {
|
| return !FLAG_report_usage_count &&
|
| - (FLAG_optimization_counter_threshold >= 0) &&
|
| - !Isolate::Current()->debugger()->IsActive();
|
| + (FLAG_optimization_counter_threshold >= 0);
|
| }
|
|
|
|
|
| +bool FlowGraphCompiler::CanOptimizeFunction() {
|
| + return CanOptimize() && !parsed_function().function().HasBreakpoint();
|
| +}
|
| +
|
| +
|
| void FlowGraphCompiler::VisitBlocks() {
|
| for (intptr_t i = 0; i < block_order().length(); ++i) {
|
| // Compile the block entry.
|
| @@ -451,7 +455,7 @@
|
| // Returns 'true' if code generation for this function is complete, i.e.,
|
| // no fall-through to regular code is needed.
|
| bool FlowGraphCompiler::TryIntrinsify() {
|
| - if (!CanOptimize()) return false;
|
| + if (!CanOptimizeFunction()) return false;
|
| // Intrinsification skips arguments checks, therefore disable if in checked
|
| // mode.
|
| if (FLAG_intrinsify && !FLAG_enable_type_checks) {
|
|
|