Commit 374354bf authored by Georg Neis's avatar Georg Neis Committed by V8 LUCI CQ

[compiler] Fix a bug in CodeGenerator::AddTranslationForOperand

Bug: chromium:1228407
Change-Id: I20941e8aaa4a1d82b035a5387cdd1b08b8994c2d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3024153
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarMythri Alle <mythria@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75712}
parent 5165e3f4
...@@ -1396,7 +1396,8 @@ void CodeGenerator::AddTranslationForOperand(Instruction* instr, ...@@ -1396,7 +1396,8 @@ void CodeGenerator::AddTranslationForOperand(Instruction* instr,
default: default:
UNREACHABLE(); UNREACHABLE();
} }
if (literal.object().equals(info()->closure())) { if (literal.object().equals(info()->closure()) &&
info()->function_context_specializing()) {
translations_.StoreJSFrameFunction(); translations_.StoreJSFrameFunction();
} else { } else {
int literal_id = DefineDeoptimizationLiteral(literal); int literal_id = DefineDeoptimizationLiteral(literal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment