Index: src/debug/x64/debug-x64.cc |
diff --git a/src/debug/x64/debug-x64.cc b/src/debug/x64/debug-x64.cc |
index 60f1cfd4cfd9b9c5e3a77218f34562f60760fe9f..7935b1d9abd633121d8040f050dcecf7156b0e65 100644 |
--- a/src/debug/x64/debug-x64.cc |
+++ b/src/debug/x64/debug-x64.cc |
@@ -127,16 +127,13 @@ |
// 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(rbx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); |
- __ movp(rbx, FieldOperand(rbx, SharedFunctionInfo::kCodeOffset)); |
- __ leap(rbx, FieldOperand(rbx, Code::kHeaderSize)); |
+ __ movp(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); |
+ __ movp(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); |
+ __ leap(rdx, FieldOperand(rdx, Code::kHeaderSize)); |
// Re-run JSFunction, rdi is function, rsi is context. |
- __ jmp(rbx); |
+ __ jmp(rdx); |
} |
const bool LiveEdit::kFrameDropperSupported = true; |