Index: src/ia32/deoptimizer-ia32.cc |
diff --git a/src/ia32/deoptimizer-ia32.cc b/src/ia32/deoptimizer-ia32.cc |
index c14a2a1e2eea8aa06d73c458df14e779292031f0..390f3a76a8f276f852a5e293c4bcbee9fefec9b2 100644 |
--- a/src/ia32/deoptimizer-ia32.cc |
+++ b/src/ia32/deoptimizer-ia32.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 |