MIPS64: Improve '[strong] Check arity of functions'
authorakos.palfi <akos.palfi@imgtec.com>
Mon, 11 May 2015 23:07:43 +0000 (16:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 23:07:41 +0000 (23:07 +0000)
Port 3226e980200035f37c86fef4b11fb307e17764a2

BUG=

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

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

src/mips64/builtins-mips64.cc

index a20e868..2c22332 100644 (file)
@@ -1754,10 +1754,10 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
 
     // If the function is strong we need to throw an error.
     Label weak_function;
-    __ ld(t1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
-    __ lbu(t1, FieldMemOperand(t1, SharedFunctionInfo::kCompilerHintsOffset));
-    __ And(t2, t1, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte));
-    __ Branch(&weak_function, eq, t2, Operand(zero_reg));
+    __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
+    __ lbu(a4, FieldMemOperand(a4, SharedFunctionInfo::kStrongModeByteOffset));
+    __ And(a4, a4, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte));
+    __ Branch(&weak_function, eq, a4, Operand(zero_reg));
 
     {
       FrameScope frame(masm, StackFrame::MANUAL);