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

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

Issue 1489353004: Remove new.target value from construct stub frames. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-pass-new-target-9
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/mips64/builtins-mips64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/builtins-x64.cc
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
index 22153f6d8e4ecf5a2ec52d282b18808d0692add9..f3b898fdadec640f4e91734b0169e89e25b2caed 100644
--- a/src/x64/builtins-x64.cc
+++ b/src/x64/builtins-x64.cc
@@ -276,10 +276,6 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
__ SmiToInteger32(rax, rax);
}
- // Push new.target onto the construct frame. This is stored just below the
- // receiver on the stack.
- __ Push(rdx);
-
if (create_implicit_receiver) {
// Push the allocated receiver to the stack. We need two copies
// because we may have to return the original one and the calling
@@ -343,11 +339,11 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
__ movp(rax, Operand(rsp, 0));
// Restore the arguments count and leave the construct frame. The
- // arguments count is stored below the reciever and the new.target.
+ // arguments count is stored below the receiver.
__ bind(&exit);
- __ movp(rbx, Operand(rsp, 2 * kPointerSize));
+ __ movp(rbx, Operand(rsp, 1 * kPointerSize));
} else {
- __ movp(rbx, Operand(rsp, kPointerSize));
+ __ movp(rbx, Operand(rsp, 0));
}
// Leave construct frame.
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698