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 0ab0acf commit 7988ac0Copy full SHA for 7988ac0
chromium/v8/src/codegen/arm64/macro-assembler-arm64.h
@@ -2372,7 +2372,9 @@ class V8_NODISCARD InstructionAccurateScope {
2372
#endif
2373
{
2374
DCHECK_GT(count, 0);
2375
- masm_->CheckVeneerPool(false, true, count * kInstrSize);
+ // We include the branch instruction in the veneer distance margin if we
2376
+ // need to emit a veneer pool.
2377
+ masm_->CheckVeneerPool(false, true, (count + 1) * kInstrSize);
2378
masm_->StartBlockVeneerPool();
2379
#ifdef DEBUG
2380
masm_->bind(&start_);
0 commit comments