[mips] Fix MIPS/MIPS64 test failures after r31120.

TBR=machenbach@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#31121}
This commit is contained in:
Benedikt Meurer 2015-10-06 11:14:09 +02:00
parent 9c8262f11e
commit 8f9858a4da
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm,
__ lw(a2,
FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset));
__ SmiUntag(a2);
__ Branch(&argc, ne, a2,
__ Branch(&argc, eq, a2,
Operand(SharedFunctionInfo::kDontAdaptArgumentsSentinel));
__ Addu(a0, a2, num_extra_args + 1);
__ jmp(&done_argc);

View File

@ -56,7 +56,7 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm,
__ ld(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
__ lw(a2,
FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset));
__ Branch(&argc, ne, a2,
__ Branch(&argc, eq, a2,
Operand(SharedFunctionInfo::kDontAdaptArgumentsSentinel));
__ Daddu(a0, a2, num_extra_args + 1);
__ jmp(&done_argc);