Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index 06c3bb45b5c400d7a72a118a69632833e8e21e31..7db287a118c43a0a40058ddfadc4b140bf3724e0 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.cc |
@@ -436,7 +436,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(); |