| Index: runtime/vm/intermediate_language_x64.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_x64.cc (revision 16761)
|
| +++ runtime/vm/intermediate_language_x64.cc (working copy)
|
| @@ -77,7 +77,7 @@
|
| // collection and counting stub.
|
| __ LoadObject(func_reg, function);
|
| __ incq(FieldAddress(func_reg, Function::usage_counter_offset()));
|
| - if (FlowGraphCompiler::CanOptimize() &&
|
| + if (compiler->CanOptimizeFunction() &&
|
| compiler->parsed_function().function().is_optimizable()) {
|
| // Do not optimize if usage count must be reported.
|
| __ cmpq(FieldAddress(func_reg, Function::usage_counter_offset()),
|
|
|