Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 0b3b7c4dd4b821d63656587ad0e926b841354bc6..a8626b3164bc56274617dcbf67028cbdbdeecb1a 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -207,7 +207,7 @@ void FullCodeGenerator::EmitReturnSequence() { |
Label check_exit_codesize; |
masm_->bind(&check_exit_codesize); |
#endif |
- CodeGenerator::RecordPositions(masm_, function()->end_position()); |
+ CodeGenerator::RecordPositions(masm_, 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. |