diff --git a/chromium/v8/src/compiler/backend/code-generator.cc b/chromium/v8/src/compiler/backend/code-generator.cc index 33a80f52d0d6..6f25ce706fd1 100644 --- a/chromium/v8/src/compiler/backend/code-generator.cc +++ b/chromium/v8/src/compiler/backend/code-generator.cc @@ -1306,7 +1306,8 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation, default: UNREACHABLE(); } - if (literal.object().equals(info()->closure())) { + if (literal.object().equals(info()->closure()) && + info()->function_context_specializing()) { translation->StoreJSFrameFunction(); } else { int literal_id = DefineDeoptimizationLiteral(literal);