Skip to content

Commit 53786ab

Browse files
victorgomesV8 LUCI CQ
authored andcommitted
[arm64] Consider branch when skipping a veener pool
... in InstructionAccurateScope. Bug: 431828026 Change-Id: Iee98fe6172f2bd0da65d5acf3656294be8449705 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6759971 Auto-Submit: Victor Gomes <[email protected]> Reviewed-by: Leszek Swirski <[email protected]> Commit-Queue: Victor Gomes <[email protected]> Commit-Queue: Leszek Swirski <[email protected]> Cr-Commit-Position: refs/heads/main@{#101462}
1 parent 0302c14 commit 53786ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/codegen/arm64/macro-assembler-arm64.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,9 @@ class V8_NODISCARD InstructionAccurateScope {
25082508
#endif
25092509
{
25102510
DCHECK_GT(count, 0);
2511-
masm_->CheckVeneerPool(false, true, count * kInstrSize);
2511+
// We include the branch instruction in the veneer distance margin if we
2512+
// need to emit a veneer pool.
2513+
masm_->CheckVeneerPool(false, true, (count + 1) * kInstrSize);
25122514
masm_->StartBlockVeneerPool();
25132515
#ifdef DEBUG
25142516
masm_->bind(&start_);

0 commit comments

Comments
 (0)