| Index: src/x64/debug-x64.cc
|
| diff --git a/src/x64/debug-x64.cc b/src/x64/debug-x64.cc
|
| index a337b0d052f7252ea1baa0e3b1d0bfe608fd87a7..e6bc92950a9c43f984c9b87e275eb9e35c75fab6 100644
|
| --- a/src/x64/debug-x64.cc
|
| +++ b/src/x64/debug-x64.cc
|
| @@ -48,11 +48,10 @@ bool BreakLocationIterator::IsDebugBreakAtReturn() {
|
| // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc
|
| // for the precise return instructions sequence.
|
| void BreakLocationIterator::SetDebugBreakAtReturn() {
|
| - ASSERT(Assembler::kJSReturnSequenceLength >=
|
| - Assembler::kCallInstructionLength);
|
| + ASSERT(Assembler::kJSReturnSequenceLength >= Assembler::kCallSequenceLength);
|
| rinfo()->PatchCodeWithCall(
|
| Isolate::Current()->debug()->debug_break_return()->entry(),
|
| - Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength);
|
| + Assembler::kJSReturnSequenceLength - Assembler::kCallSequenceLength);
|
| }
|
|
|
|
|
| @@ -82,7 +81,7 @@ void BreakLocationIterator::SetDebugBreakAtSlot() {
|
| ASSERT(IsDebugBreakSlot());
|
| rinfo()->PatchCodeWithCall(
|
| Isolate::Current()->debug()->debug_break_slot()->entry(),
|
| - Assembler::kDebugBreakSlotLength - Assembler::kCallInstructionLength);
|
| + Assembler::kDebugBreakSlotLength - Assembler::kCallSequenceLength);
|
| }
|
|
|
|
|
|
|