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

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

Issue 1237813002: Switch CallConstructStub to take new.target in register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ported to all architectures. Created 5 years, 5 months 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
Index: src/mips64/builtins-mips64.cc
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc
index efecc29cc97ead61833acb9b331edfa31b34752d..4d3a593e1972f803ed0a2cc1fd786f944af32eb0 100644
--- a/src/mips64/builtins-mips64.cc
+++ b/src/mips64/builtins-mips64.cc
@@ -1497,9 +1497,7 @@ static void Generate_ConstructHelper(MacroAssembler* masm) {
__ push(v0); // limit
__ mov(a1, zero_reg); // initial index
__ push(a1);
- // Push newTarget and callee functions
- __ ld(a0, MemOperand(fp, kNewTargetOffset));
- __ push(a0);
+ // Push the constructor function as callee.
__ ld(a0, MemOperand(fp, kFunctionOffset));
__ push(a0);
@@ -1510,13 +1508,12 @@ static void Generate_ConstructHelper(MacroAssembler* masm) {
// Use undefined feedback vector
__ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
__ ld(a1, MemOperand(fp, kFunctionOffset));
+ __ ld(t0, MemOperand(fp, kNewTargetOffset));
paul.l... 2015/07/14 16:58:17 t0 -> a4
Michael Starzinger 2015/07/15 07:36:36 Done.
// Call the function.
CallConstructStub stub(masm->isolate(), SUPER_CONSTRUCTOR_CALL);
__ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
- __ Drop(1);
-
// Leave internal frame.
}
__ jr(ra);

Powered by Google App Engine
This is Rietveld 408576698