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

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

Issue 2290603004: Merged: PPC/s390: Fix register mapping and imm16 issue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.4
Patch Set: Created 4 years, 4 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
« no previous file with comments | « include/v8-version.h ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/ppc/builtins-ppc.cc
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc
index af1e624ca07f8a2a9e2d13eab015852dae0b23e8..dfea83f2b4ed353788fe632988ba7dd1f0ea3af9 100644
--- a/src/builtins/ppc/builtins-ppc.cc
+++ b/src/builtins/ppc/builtins-ppc.cc
@@ -1462,7 +1462,7 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) {
{
FrameScope scope(masm, StackFrame::INTERNAL);
// Preserve argument count for later compare.
- __ Move(r5, r3);
+ __ Move(r7, r3);
// Push a copy of the target function and the new target.
// Push function as parameter to the runtime call.
__ SmiTag(r3);
@@ -1473,13 +1473,13 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) {
for (int j = 0; j < 4; ++j) {
Label over;
if (j < 3) {
- __ cmpi(r5, Operand(j));
+ __ cmpi(r7, Operand(j));
__ bne(&over);
}
for (int i = j - 1; i >= 0; --i) {
- __ LoadP(r5, MemOperand(fp, StandardFrameConstants::kCallerSPOffset +
+ __ LoadP(r7, MemOperand(fp, StandardFrameConstants::kCallerSPOffset +
i * kPointerSize));
- __ push(r5);
+ __ push(r7);
}
for (int i = 0; i < 3 - j; ++i) {
__ PushRoot(Heap::kUndefinedValueRootIndex);
@@ -1497,11 +1497,12 @@ void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) {
__ JumpIfSmi(r3, &failed);
__ Drop(2);
- __ pop(r5);
- __ SmiUntag(r5);
+ __ pop(r7);
+ __ SmiUntag(r7);
scope.GenerateLeaveFrame();
- __ Drop(r5);
+ __ addi(r7, r7, Operand(1));
+ __ Drop(r7);
__ Ret();
__ bind(&failed);
« no previous file with comments | « include/v8-version.h ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698