Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index e685cc911058bd44b76644ef13473d436f4c2297..1d73199929973245288c9069c52d2d2fe1da02a8 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -440,7 +440,9 @@ void FullCodeGenerator::EmitReturnSequence() { |
// Here we use masm_-> instead of the __ macro to avoid the code coverage |
// tool from instrumenting as we rely on the code size here. |
int32_t sp_delta = (info_->scope()->num_parameters() + 1) * kPointerSize; |
- CodeGenerator::RecordPositions(masm_, function()->end_position() - 1); |
+ if (function()->end_position() != RelocInfo::kNoPosition) { |
+ CodeGenerator::RecordPositions(masm_, function()->end_position() - 1); |
+ } |
__ RecordJSReturn(); |
masm_->mov(sp, fp); |
int no_frame_start = masm_->pc_offset(); |