| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 171112fa7d37a37d01a2a22aa2e41ac1322985d1..3fdea902d853644a73d2277a2b53ec37f3fd75ce 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -3727,6 +3727,24 @@ void CEntryStub::Generate(MacroAssembler* masm) {
|
| __ ThrowUncatchable(rax);
|
|
|
| __ bind(&throw_normal_exception);
|
| +
|
| +#ifdef ENABLE_DEBUGGER_SUPPORT
|
| + Label proceed_throwing;
|
| + ExternalReference c_entry_frame_to_ignore_exception =
|
| + ExternalReference(Debug_Address::CEntryFrameToIgnoreException(),
|
| + masm->isolate());
|
| + Operand c_entry_frame_to_ignore_exception_operand =
|
| + masm->ExternalOperand(c_entry_frame_to_ignore_exception);
|
| +
|
| + __ cmpq(rbp, c_entry_frame_to_ignore_exception_operand);
|
| + __ j(not_equal, &proceed_throwing);
|
| + __ Set(c_entry_frame_to_ignore_exception_operand, 0);
|
| + __ LeaveExitFrame(save_doubles_);
|
| + __ ret(0);
|
| +
|
| + __ bind(&proceed_throwing);
|
| +#endif // ENABLE_DEBUGGER_SUPPORT
|
| +
|
| __ Throw(rax);
|
| }
|
|
|
|
|