diff --git a/chromium/v8/src/compiler/backend/code-generator.cc b/chromium/v8/src/compiler/backend/code-generator.cc index e9a39f74a9e..c5753f74235 100644 --- a/chromium/v8/src/compiler/backend/code-generator.cc +++ b/chromium/v8/src/compiler/backend/code-generator.cc @@ -1376,7 +1376,8 @@ void CodeGenerator::AddTranslationForOperand(Instruction* instr, default: UNREACHABLE(); } - if (literal.object().equals(info()->closure())) { + if (literal.object().equals(info()->closure()) && + info()->function_context_specializing()) { translations_.StoreJSFrameFunction(); } else { int literal_id = DefineDeoptimizationLiteral(literal);