Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: src/debug/x64/debug-x64.cc

Issue 1493863004: Revert of [debugger] do not restart frames that reference new.target for liveedit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/mips64/debug-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/debug/mips64/debug-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698