PPC: Fix '[strong] Function arity check should be based on required parameters'
authormbrandy <mbrandy@us.ibm.com>
Wed, 20 May 2015 13:30:51 +0000 (06:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 May 2015 13:30:29 +0000 (13:30 +0000)
lwa cannot encode unaligned displacements.  lwz is acceptable here
since the shift right will perform the sign-extension on PPC64 for us.

R=arv@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1134913004

Cr-Commit-Position: refs/heads/master@{#28517}

src/ppc/builtins-ppc.cc

index ee89116..48e45db 100644 (file)
@@ -1778,7 +1778,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
     __ beq(&no_strong_error, cr0);
 
     // What we really care about is the required number of arguments.
-    __ lwa(r7, FieldMemOperand(r7, SharedFunctionInfo::kLengthOffset));
+    __ lwz(r7, FieldMemOperand(r7, SharedFunctionInfo::kLengthOffset));
 #if V8_TARGET_ARCH_PPC64
     // See commment near kLenghtOffset in src/objects.h
     __ srawi(r7, r7, kSmiTagSize);