| Index: src/x87/full-codegen-x87.cc
|
| diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc
|
| index 729655d80a1e65e6895991028071fddb8a67f787..c0aa9b25b87f8fd9e1fe0259028461938e409e2a 100644
|
| --- a/src/x87/full-codegen-x87.cc
|
| +++ b/src/x87/full-codegen-x87.cc
|
| @@ -402,7 +402,9 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| Label check_exit_codesize;
|
| masm_->bind(&check_exit_codesize);
|
| #endif
|
| - SetSourcePosition(function()->end_position() - 1);
|
| + if (function()->end_position() != RelocInfo::kNoPosition) {
|
| + SetSourcePosition(function()->end_position() - 1);
|
| + }
|
| __ RecordJSReturn();
|
| // Do not use the leave instruction here because it is too short to
|
| // patch with the code required by the debugger.
|
|
|