| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index acf59b4d86c14286814ebc88dc60b0367097a857..6348a934f6f86f5386aa081bb8a9b010cae3b4f0 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -405,7 +405,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.
|
|
|