We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0c912 commit d0c6c5cCopy full SHA for d0c6c5c
chromium/v8/src/codegen/arm64/macro-assembler-arm64.h
@@ -2467,7 +2467,9 @@ class V8_NODISCARD InstructionAccurateScope {
2467
#endif
2468
{
2469
DCHECK_GT(count, 0);
2470
- masm_->CheckVeneerPool(false, true, count * kInstrSize);
+ // We include the branch instruction in the veneer distance margin if we
2471
+ // need to emit a veneer pool.
2472
+ masm_->CheckVeneerPool(false, true, (count + 1) * kInstrSize);
2473
masm_->StartBlockVeneerPool();
2474
#ifdef DEBUG
2475
masm_->bind(&start_);
0 commit comments