| Index: src/debug/x64/debug-x64.cc
|
| diff --git a/src/debug/x64/debug-x64.cc b/src/debug/x64/debug-x64.cc
|
| index 7935b1d9abd633121d8040f050dcecf7156b0e65..60f1cfd4cfd9b9c5e3a77218f34562f60760fe9f 100644
|
| --- a/src/debug/x64/debug-x64.cc
|
| +++ b/src/debug/x64/debug-x64.cc
|
| @@ -127,13 +127,16 @@
|
| // Load context from the function.
|
| __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
|
|
|
| + // Clear new.target as a safety measure.
|
| + __ LoadRoot(rdx, Heap::kUndefinedValueRootIndex);
|
| +
|
| // Get function code.
|
| - __ movp(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
|
| - __ movp(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset));
|
| - __ leap(rdx, FieldOperand(rdx, Code::kHeaderSize));
|
| + __ movp(rbx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
|
| + __ movp(rbx, FieldOperand(rbx, SharedFunctionInfo::kCodeOffset));
|
| + __ leap(rbx, FieldOperand(rbx, Code::kHeaderSize));
|
|
|
| // Re-run JSFunction, rdi is function, rsi is context.
|
| - __ jmp(rdx);
|
| + __ jmp(rbx);
|
| }
|
|
|
| const bool LiveEdit::kFrameDropperSupported = true;
|
|
|