Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index 0bb420cf590a83f799d0225af6866643f9aa32ab..23d2848c7c7fbe64f59511e5d15de71372490a31 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -895,6 +895,9 @@ bool LCodeGen::GenerateDeoptJumpTable() { |
bool LCodeGen::GenerateSafepointTable() { |
ASSERT(is_done()); |
+ // We do not know how much data will be emitted for the safepoint table, so |
+ // force emission of the veneer pool. |
+ masm()->CheckVeneerPool(true, true); |
safepoints_.Emit(masm(), GetStackSlotCount()); |
return !is_aborted(); |
} |