Index: src/x87/deoptimizer-x87.cc |
diff --git a/src/x87/deoptimizer-x87.cc b/src/x87/deoptimizer-x87.cc |
index 15dabb980850c50e00305e550313633abd2d6851..8df66bcfac679b0b1aafc2a0a155f27a5dc02193 100644 |
--- a/src/x87/deoptimizer-x87.cc |
+++ b/src/x87/deoptimizer-x87.cc |
@@ -35,6 +35,7 @@ void Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(Handle<Code> code) { |
for (int i = 0; i < deopt_data->DeoptCount(); i++) { |
int pc_offset = deopt_data->Pc(i)->value(); |
if (pc_offset == -1) continue; |
+ pc_offset = pc_offset + 1; // We will encode the pc offset after the call. |
DCHECK_GE(pc_offset, prev_pc_offset); |
int pc_delta = pc_offset - prev_pc_offset; |
// We use RUNTIME_ENTRY reloc info which has a size of 2 bytes |