[baseline] Fix DCHECK in PrologueFillFrame

Change-Id: I8b5c6347ab22d2578bd8975cf10b5508832fd0c0
Bug: v8:11429
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2695398
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72741}
This commit is contained in:
Victor Gomes 2021-02-15 14:11:13 +01:00 committed by Commit Bot
parent 620afd2387
commit b4050a76b6

View File

@ -505,7 +505,7 @@ void BaselineCompiler::PrologueFillFrame() {
__ masm()->Push(kJavaScriptCallNewTargetRegister,
kInterpreterAccumulatorRegister);
} else {
DCHECK_EQ(i, new_target_index + 1);
DCHECK_EQ(i, new_target_index - 1);
__ masm()->Push(kInterpreterAccumulatorRegister,
kJavaScriptCallNewTargetRegister);
}