| Index: src/arm64/full-codegen-arm64.cc
|
| diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc
|
| index 426287540e4e2b523b9ed40c9030504f5ee79cf3..74b8803173c65275d8248224c0343ace5171b12a 100644
|
| --- a/src/arm64/full-codegen-arm64.cc
|
| +++ b/src/arm64/full-codegen-arm64.cc
|
| @@ -437,7 +437,9 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| {
|
| InstructionAccurateScope scope(masm_,
|
| Assembler::kJSRetSequenceInstructions);
|
| - CodeGenerator::RecordPositions(masm_, function()->end_position() - 1);
|
| + if (function()->end_position() != RelocInfo::kNoPosition) {
|
| + CodeGenerator::RecordPositions(masm_, function()->end_position() - 1);
|
| + }
|
| __ RecordJSReturn();
|
| // This code is generated using Assembler methods rather than Macro
|
| // Assembler methods because it will be patched later on, and so the size
|
|
|