Chromium Code Reviews| Index: runtime/vm/intermediate_language_ia32.cc |
| =================================================================== |
| --- runtime/vm/intermediate_language_ia32.cc (revision 24103) |
| +++ runtime/vm/intermediate_language_ia32.cc (working copy) |
| @@ -2147,7 +2147,8 @@ |
| __ cmpl(ESP, |
| Address::Absolute(Isolate::Current()->stack_limit_address())); |
| __ j(BELOW_EQUAL, slow_path->entry_label()); |
| - if (FLAG_use_osr && !compiler->is_optimizing() && in_loop()) { |
| + if (FLAG_use_osr && compiler->CanOptimizeFunction() && |
| + !compiler->is_optimizing() && in_loop()) { |
|
siva
2013/06/17 21:31:40
Would it make sense to have a CanOSRFunction() hel
srdjan
2013/06/17 21:46:14
Done
|
| // In unoptimized code check the usage counter to trigger OSR at loop |
| // stack checks. |
| __ LoadObject(EDI, compiler->parsed_function().function()); |