| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index f5c8693d50f248a2ebff0279cecfede4d496f9ac..81ac237fccf1ad468df286cc1b10e825aeb0bf88 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -13954,7 +13954,7 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
|
| }
|
| set_opt_count(0);
|
| set_deopt_count(0);
|
| - } else if (code()->is_interpreter_trampoline_builtin()) {
|
| + } else if (IsInterpreted()) {
|
| set_profiler_ticks(0);
|
| if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) {
|
| // Re-enable optimizations if they were disabled due to opt_count limit.
|
|
|