| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 1067691335b9727e37aa6b1b9bdd4d54dc058c45..569b5d030bdf4b3e16f697874db164a46110dc67 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -7935,7 +7935,7 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
|
| if (code()->kind() == Code::FUNCTION) {
|
| code()->set_profiler_ticks(0);
|
| if (optimization_disabled() &&
|
| - opt_count() >= Compiler::kDefaultMaxOptCount) {
|
| + opt_count() >= FLAG_max_opt_count) {
|
| // Re-enable optimizations if they were disabled due to opt_count limit.
|
| set_optimization_disabled(false);
|
| code()->set_optimizable(true);
|
|
|