| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 2456ed6b1defb6ad7f97bc4650d3a575828b11ee..0a1c7a90eb127d9db154adb37fb6defaaaab60c9 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -5977,13 +5977,13 @@ void Function::SetNumOptionalParameters(intptr_t num_optional_parameters,
|
|
|
|
|
| bool Function::IsOptimizable() const {
|
| + if (FLAG_precompiled_mode) {
|
| + return true;
|
| + }
|
| if (is_native()) {
|
| // Native methods don't need to be optimized.
|
| return false;
|
| }
|
| - if (FLAG_precompiled_mode) {
|
| - return true;
|
| - }
|
| const intptr_t function_length = end_token_pos().Pos() - token_pos().Pos();
|
| if (is_optimizable() && (script() != Script::null()) &&
|
| (function_length < FLAG_huge_method_cutoff_in_tokens)) {
|
|
|