| Index: runtime/vm/intermediate_language_x64.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_x64.cc (revision 24103)
|
| +++ runtime/vm/intermediate_language_x64.cc (working copy)
|
| @@ -2132,7 +2132,7 @@
|
| __ movq(temp, Immediate(Isolate::Current()->stack_limit_address()));
|
| __ cmpq(RSP, Address(temp, 0));
|
| __ j(BELOW_EQUAL, slow_path->entry_label());
|
| - if (FLAG_use_osr && !compiler->is_optimizing() && in_loop()) {
|
| + if (compiler->CanOSRFunction() && in_loop()) {
|
| // In unoptimized code check the usage counter to trigger OSR at loop
|
| // stack checks.
|
| __ LoadObject(temp, compiler->parsed_function().function());
|
|
|