Lines Matching refs:scratch
199 Register scratch, in InNewSpace() argument
205 CheckPageFlag(object, scratch, mask, cc, branch); in InNewSpace()
415 Register scratch) { in RecordWriteCodeEntryField() argument
425 DCHECK(scratch.is(a5)); in RecordWriteCodeEntryField()
429 Daddu(scratch, js_function, Operand(offset - kHeapObjectTag)); in RecordWriteCodeEntryField()
430 ld(at, MemOperand(scratch)); in RecordWriteCodeEntryField()
439 CheckPageFlag(code_entry, scratch, in RecordWriteCodeEntryField()
441 CheckPageFlag(js_function, scratch, in RecordWriteCodeEntryField()
444 const Register dst = scratch; in RecordWriteCodeEntryField()
477 Register scratch, in RememberedSetHelper() argument
483 JumpIfNotInNewSpace(object, scratch, &ok); in RememberedSetHelper()
491 ld(scratch, MemOperand(t8)); in RememberedSetHelper()
493 sd(address, MemOperand(scratch)); in RememberedSetHelper()
494 Daddu(scratch, scratch, kPointerSize); in RememberedSetHelper()
496 sd(scratch, MemOperand(t8)); in RememberedSetHelper()
499 And(t8, scratch, Operand(StoreBuffer::kStoreBufferMask)); in RememberedSetHelper()
500 DCHECK(!scratch.is(t8)); in RememberedSetHelper()
523 Register scratch, in CheckAccessGlobalProxy() argument
528 DCHECK(!holder_reg.is(scratch)); in CheckAccessGlobalProxy()
530 DCHECK(!scratch.is(at)); in CheckAccessGlobalProxy()
538 ld(scratch, MemOperand(at, CommonFrameConstants::kContextOrFrameTypeOffset)); in CheckAccessGlobalProxy()
540 JumpIfNotSmi(scratch, &has_context, temporary); in CheckAccessGlobalProxy()
548 scratch, Operand(zero_reg)); in CheckAccessGlobalProxy()
552 ld(scratch, ContextMemOperand(scratch, Context::NATIVE_CONTEXT_INDEX)); in CheckAccessGlobalProxy()
558 ld(holder_reg, FieldMemOperand(scratch, HeapObject::kMapOffset)); in CheckAccessGlobalProxy()
567 Branch(&same_contexts, eq, scratch, Operand(at)); in CheckAccessGlobalProxy()
593 ld(scratch, FieldMemOperand(scratch, token_offset)); in CheckAccessGlobalProxy()
595 Branch(miss, ne, scratch, Operand(at)); in CheckAccessGlobalProxy()
604 void MacroAssembler::GetNumberHash(Register reg0, Register scratch) { in GetNumberHash() argument
606 LoadRoot(scratch, Heap::kHashSeedRootIndex); in GetNumberHash()
607 SmiUntag(scratch); in GetNumberHash()
610 xor_(reg0, reg0, scratch); in GetNumberHash()
617 nor(scratch, reg0, zero_reg); in GetNumberHash()
618 Lsa(reg0, scratch, reg0, 15); in GetNumberHash()
632 sll(scratch, reg0, 11); in GetNumberHash()
634 addu(reg0, reg0, scratch); in GetNumberHash()
1309 Register scratch) { in Lsa() argument
1314 Register tmp = rd.is(rt) ? scratch : rd; in Lsa()
1323 Register scratch) { in Dlsa() argument
1328 Register tmp = rd.is(rt) ? scratch : rd; in Dlsa()
1496 void MacroAssembler::Ush(Register rd, const MemOperand& rs, Register scratch) { in Ush() argument
1499 DCHECK(!rs.rm().is(scratch)); in Ush()
1500 DCHECK(!scratch.is(at)); in Ush()
1512 if (!scratch.is(rd)) { in Ush()
1513 mov(scratch, rd); in Ush()
1517 sb(scratch, source); in Ush()
1518 srl(scratch, scratch, 8); in Ush()
1519 sb(scratch, MemOperand(source.rm(), source.offset() + 1)); in Ush()
1521 sb(scratch, MemOperand(source.rm(), source.offset() + 1)); in Ush()
1522 srl(scratch, scratch, 8); in Ush()
1523 sb(scratch, source); in Ush()
1558 Register scratch) { in LoadWordPair() argument
1560 lw(scratch, MemOperand(rs.rm(), rs.offset() + kPointerSize / 2)); in LoadWordPair()
1561 dsll32(scratch, scratch, 0); in LoadWordPair()
1562 Daddu(rd, rd, scratch); in LoadWordPair()
1587 Register scratch) { in StoreWordPair() argument
1589 dsrl32(scratch, rd, 0); in StoreWordPair()
1590 sw(scratch, MemOperand(rs.rm(), rs.offset() + kPointerSize / 2)); in StoreWordPair()
1594 Register scratch) { in Ulwc1() argument
1599 Ulw(scratch, rs); in Ulwc1()
1600 mtc1(scratch, fd); in Ulwc1()
1605 Register scratch) { in Uswc1() argument
1610 mfc1(scratch, fd); in Uswc1()
1611 Usw(scratch, rs); in Uswc1()
1616 Register scratch) { in Uldc1() argument
1617 DCHECK(!scratch.is(at)); in Uldc1()
1622 Uld(scratch, rs); in Uldc1()
1623 dmtc1(scratch, fd); in Uldc1()
1628 Register scratch) { in Usdc1() argument
1629 DCHECK(!scratch.is(at)); in Usdc1()
1634 dmfc1(scratch, fd); in Usdc1()
1635 Usd(scratch, rs); in Usdc1()
2079 FPURegister scratch) { in Trunc_l_ud() argument
2092 FPURegister scratch) { in Trunc_uw_d() argument
2093 Trunc_uw_d(fs, t8, scratch); in Trunc_uw_d()
2098 FPURegister scratch) { in Trunc_uw_s() argument
2099 Trunc_uw_s(fs, t8, scratch); in Trunc_uw_s()
2104 FPURegister scratch, Register result) { in Trunc_ul_d() argument
2105 Trunc_ul_d(fs, t8, scratch, result); in Trunc_ul_d()
2111 FPURegister scratch, Register result) { in Trunc_ul_s() argument
2112 Trunc_ul_s(fs, t8, scratch, result); in Trunc_ul_s()
2139 FPURegister scratch) { in Trunc_uw_d() argument
2140 DCHECK(!fd.is(scratch)); in Trunc_uw_d()
2145 mtc1(zero_reg, scratch); in Trunc_uw_d()
2146 mthc1(at, scratch); in Trunc_uw_d()
2150 BranchF(&simple_convert, NULL, lt, fd, scratch); in Trunc_uw_d()
2154 sub_d(scratch, fd, scratch); in Trunc_uw_d()
2155 trunc_w_d(scratch, scratch); in Trunc_uw_d()
2156 mfc1(rs, scratch); in Trunc_uw_d()
2163 trunc_w_d(scratch, fd); in Trunc_uw_d()
2164 mfc1(rs, scratch); in Trunc_uw_d()
2170 FPURegister scratch) { in Trunc_uw_s() argument
2171 DCHECK(!fd.is(scratch)); in Trunc_uw_s()
2176 mtc1(at, scratch); in Trunc_uw_s()
2180 BranchF32(&simple_convert, NULL, lt, fd, scratch); in Trunc_uw_s()
2184 sub_s(scratch, fd, scratch); in Trunc_uw_s()
2185 trunc_w_s(scratch, scratch); in Trunc_uw_s()
2186 mfc1(rs, scratch); in Trunc_uw_s()
2193 trunc_w_s(scratch, fd); in Trunc_uw_s()
2194 mfc1(rs, scratch); in Trunc_uw_s()
2200 FPURegister scratch, Register result) { in Trunc_ul_d() argument
2201 DCHECK(!fd.is(scratch)); in Trunc_ul_d()
2207 Move(scratch, -1.0); in Trunc_ul_d()
2209 BranchF(&fail, &fail, le, fd, scratch); in Trunc_ul_d()
2214 dmtc1(at, scratch); in Trunc_ul_d()
2218 BranchF(&simple_convert, nullptr, lt, fd, scratch); in Trunc_ul_d()
2222 sub_d(scratch, fd, scratch); in Trunc_ul_d()
2223 trunc_l_d(scratch, scratch); in Trunc_ul_d()
2224 dmfc1(rs, scratch); in Trunc_ul_d()
2230 trunc_l_d(scratch, fd); in Trunc_ul_d()
2231 dmfc1(rs, scratch); in Trunc_ul_d()
2238 dmfc1(result, scratch); in Trunc_ul_d()
2248 FPURegister scratch, Register result) { in Trunc_ul_s() argument
2249 DCHECK(!fd.is(scratch)); in Trunc_ul_s()
2255 Move(scratch, -1.0f); in Trunc_ul_s()
2257 BranchF32(&fail, &fail, le, fd, scratch); in Trunc_ul_s()
2262 mtc1(at, scratch); in Trunc_ul_s()
2266 BranchF32(&simple_convert, nullptr, lt, fd, scratch); in Trunc_ul_s()
2270 sub_s(scratch, fd, scratch); in Trunc_ul_s()
2271 trunc_l_s(scratch, scratch); in Trunc_ul_s()
2272 dmfc1(rs, scratch); in Trunc_ul_s()
2278 trunc_l_s(scratch, fd); in Trunc_ul_s()
2279 dmfc1(rs, scratch); in Trunc_ul_s()
2286 dmfc1(result, scratch); in Trunc_ul_s()
2296 FPURegister ft, FPURegister scratch) { in Madd_d() argument
2301 DCHECK(!fr.is(scratch) && !fs.is(scratch) && !ft.is(scratch)); in Madd_d()
2302 mul_d(scratch, fs, ft); in Madd_d()
2303 add_d(fd, fr, scratch); in Madd_d()
2796 Register scratch, in EmitFPUTruncate() argument
2800 DCHECK(!result.is(scratch)); in EmitFPUTruncate()
2802 DCHECK(!except_flag.is(scratch)); in EmitFPUTruncate()
2823 cfc1(scratch, FCSR); in EmitFPUTruncate()
2846 ctc1(scratch, FCSR); in EmitFPUTruncate()
2861 Register scratch = at; in TryInlineTruncateDoubleToI() local
2871 cfc1(scratch, FCSR); in TryInlineTruncateDoubleToI()
2874 And(scratch, in TryInlineTruncateDoubleToI()
2875 scratch, in TryInlineTruncateDoubleToI()
2878 Branch(done, eq, scratch, Operand(zero_reg)); in TryInlineTruncateDoubleToI()
2930 Register scratch, in TruncateNumberToI() argument
2936 JumpIfNotHeapNumber(object, heap_number_map, scratch, not_number); in TruncateNumberToI()
3101 Register scratch) { in GetRtAsRegisterHelper() argument
3106 r2 = scratch; in GetRtAsRegisterHelper()
3118 Register scratch = rs.is(at) ? t8 : at; in BranchShortHelperR6() local
3139 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3141 beq(rs, scratch, offset); in BranchShortHelperR6()
3152 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3154 beqc(rs, scratch, offset); in BranchShortHelperR6()
3163 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3165 bne(rs, scratch, offset); in BranchShortHelperR6()
3176 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3178 bnec(rs, scratch, offset); in BranchShortHelperR6()
3190 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3192 bltzc(scratch, offset); in BranchShortHelperR6()
3201 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3202 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3204 bltc(scratch, rs, offset); in BranchShortHelperR6()
3217 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3219 blezc(scratch, offset); in BranchShortHelperR6()
3228 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3229 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3231 bgec(rs, scratch, offset); in BranchShortHelperR6()
3241 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3243 bgtzc(scratch, offset); in BranchShortHelperR6()
3252 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3253 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3255 bltc(rs, scratch, offset); in BranchShortHelperR6()
3268 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3270 bgezc(scratch, offset); in BranchShortHelperR6()
3279 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3280 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3282 bgec(scratch, rs, offset); in BranchShortHelperR6()
3294 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3296 bnezc(scratch, offset); in BranchShortHelperR6()
3305 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3306 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3308 bltuc(scratch, rs, offset); in BranchShortHelperR6()
3321 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3323 beqzc(scratch, offset); in BranchShortHelperR6()
3332 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3333 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3335 bgeuc(rs, scratch, offset); in BranchShortHelperR6()
3345 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3347 bnezc(scratch, offset); in BranchShortHelperR6()
3353 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3354 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3356 bltuc(rs, scratch, offset); in BranchShortHelperR6()
3369 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3380 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelperR6()
3381 DCHECK(!rs.is(scratch)); in BranchShortHelperR6()
3383 bgeuc(scratch, rs, offset); in BranchShortHelperR6()
3401 Register scratch = at; in BranchShortHelper() local
3420 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelper()
3422 beq(rs, scratch, offset32); in BranchShortHelper()
3431 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchShortHelper()
3433 bne(rs, scratch, offset32); in BranchShortHelper()
3443 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchShortHelper()
3445 bne(scratch, zero_reg, offset32); in BranchShortHelper()
3453 Slt(scratch, rs, rt); in BranchShortHelper()
3455 beq(scratch, zero_reg, offset32); in BranchShortHelper()
3463 Slt(scratch, rs, rt); in BranchShortHelper()
3465 bne(scratch, zero_reg, offset32); in BranchShortHelper()
3473 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchShortHelper()
3475 beq(scratch, zero_reg, offset32); in BranchShortHelper()
3485 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchShortHelper()
3487 bne(scratch, zero_reg, offset32); in BranchShortHelper()
3495 Sltu(scratch, rs, rt); in BranchShortHelper()
3497 beq(scratch, zero_reg, offset32); in BranchShortHelper()
3504 Sltu(scratch, rs, rt); in BranchShortHelper()
3506 bne(scratch, zero_reg, offset32); in BranchShortHelper()
3514 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchShortHelper()
3516 beq(scratch, zero_reg, offset32); in BranchShortHelper()
3668 Register scratch = rs.is(at) ? t8 : at; in BranchAndLinkShortHelperR6() local
3682 Subu(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3684 beqzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3688 Subu(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3690 bnezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3700 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchAndLinkShortHelperR6()
3702 bltzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3709 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelperR6()
3711 bnezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3723 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchAndLinkShortHelperR6()
3725 blezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3732 Slt(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3734 beqzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3743 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchAndLinkShortHelperR6()
3745 bgtzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3752 Slt(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3754 bnezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3766 scratch = GetRtAsRegisterHelper(rt, scratch); in BranchAndLinkShortHelperR6()
3768 bgezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3775 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelperR6()
3777 beqzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3786 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelperR6()
3788 bnezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3793 Sltu(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3795 beqzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3800 Sltu(scratch, rs, rt); in BranchAndLinkShortHelperR6()
3802 bnezalc(scratch, offset); in BranchAndLinkShortHelperR6()
3807 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelperR6()
3809 beqzalc(scratch, offset); in BranchAndLinkShortHelperR6()
3828 Register scratch = t8; in BranchAndLinkShortHelper() local
3837 bne(rs, GetRtAsRegisterHelper(rt, scratch), 2); in BranchAndLinkShortHelper()
3843 beq(rs, GetRtAsRegisterHelper(rt, scratch), 2); in BranchAndLinkShortHelper()
3851 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelper()
3852 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3854 bgezal(scratch, offset); in BranchAndLinkShortHelper()
3857 Slt(scratch, rs, rt); in BranchAndLinkShortHelper()
3858 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3860 bltzal(scratch, offset); in BranchAndLinkShortHelper()
3863 Slt(scratch, rs, rt); in BranchAndLinkShortHelper()
3864 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3866 bgezal(scratch, offset); in BranchAndLinkShortHelper()
3869 Slt(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelper()
3870 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3872 bltzal(scratch, offset); in BranchAndLinkShortHelper()
3877 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelper()
3878 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3880 bgezal(scratch, offset); in BranchAndLinkShortHelper()
3883 Sltu(scratch, rs, rt); in BranchAndLinkShortHelper()
3884 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3886 bltzal(scratch, offset); in BranchAndLinkShortHelper()
3889 Sltu(scratch, rs, rt); in BranchAndLinkShortHelper()
3890 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3892 bgezal(scratch, offset); in BranchAndLinkShortHelper()
3895 Sltu(scratch, GetRtAsRegisterHelper(rt, scratch), rs); in BranchAndLinkShortHelper()
3896 addiu(scratch, scratch, -1); in BranchAndLinkShortHelper()
3898 bltzal(scratch, offset); in BranchAndLinkShortHelper()
4228 Register scratch) { in Swap() argument
4229 if (scratch.is(no_reg)) { in Swap()
4234 mov(scratch, reg1); in Swap()
4236 mov(reg2, scratch); in Swap()
4252 void MacroAssembler::PushRegisterAsTwoSmis(Register src, Register scratch) { in PushRegisterAsTwoSmis() argument
4253 DCHECK(!src.is(scratch)); in PushRegisterAsTwoSmis()
4254 mov(scratch, src); in PushRegisterAsTwoSmis()
4258 dsll32(scratch, scratch, 0); in PushRegisterAsTwoSmis()
4259 push(scratch); in PushRegisterAsTwoSmis()
4263 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) { in PopRegisterAsTwoSmis() argument
4264 DCHECK(!dst.is(scratch)); in PopRegisterAsTwoSmis()
4265 pop(scratch); in PopRegisterAsTwoSmis()
4266 dsrl32(scratch, scratch, 0); in PopRegisterAsTwoSmis()
4270 or_(dst, dst, scratch); in PopRegisterAsTwoSmis()
4396 Register result_end, Register scratch, in Allocate() argument
4402 li(scratch, 0x7191); in Allocate()
4410 DCHECK(!AreAliased(object_size, result, scratch, t9, at)); in Allocate()
4411 DCHECK(!AreAliased(result_end, result, scratch, t9, at)); in Allocate()
4425 Register top_address = scratch; in Allocate()
4516 Register result_end, Register scratch, in FastAllocate() argument
4519 DCHECK(!AreAliased(object_size, result, scratch, at)); in FastAllocate()
4520 DCHECK(!AreAliased(result_end, result, scratch, at)); in FastAllocate()
4526 Register top_address = scratch; in FastAllocate()
4732 Register scratch) { in CopyBytes() argument
4738 And(scratch, src, kPointerSize - 1); in CopyBytes()
4739 Branch(&word_loop, eq, scratch, Operand(zero_reg)); in CopyBytes()
4740 lbu(scratch, MemOperand(src)); in CopyBytes()
4742 sb(scratch, MemOperand(dst)); in CopyBytes()
4750 And(scratch, src, kPointerSize - 1); in CopyBytes()
4752 scratch, Operand(zero_reg)); in CopyBytes()
4755 ld(scratch, MemOperand(src)); in CopyBytes()
4761 sb(scratch, MemOperand(dst, 0)); in CopyBytes()
4762 dsrl(scratch, scratch, 8); in CopyBytes()
4763 sb(scratch, MemOperand(dst, 1)); in CopyBytes()
4764 dsrl(scratch, scratch, 8); in CopyBytes()
4765 sb(scratch, MemOperand(dst, 2)); in CopyBytes()
4766 dsrl(scratch, scratch, 8); in CopyBytes()
4767 sb(scratch, MemOperand(dst, 3)); in CopyBytes()
4768 dsrl(scratch, scratch, 8); in CopyBytes()
4769 sb(scratch, MemOperand(dst, 4)); in CopyBytes()
4770 dsrl(scratch, scratch, 8); in CopyBytes()
4771 sb(scratch, MemOperand(dst, 5)); in CopyBytes()
4772 dsrl(scratch, scratch, 8); in CopyBytes()
4773 sb(scratch, MemOperand(dst, 6)); in CopyBytes()
4774 dsrl(scratch, scratch, 8); in CopyBytes()
4775 sb(scratch, MemOperand(dst, 7)); in CopyBytes()
4777 sb(scratch, MemOperand(dst, 7)); in CopyBytes()
4778 dsrl(scratch, scratch, 8); in CopyBytes()
4779 sb(scratch, MemOperand(dst, 6)); in CopyBytes()
4780 dsrl(scratch, scratch, 8); in CopyBytes()
4781 sb(scratch, MemOperand(dst, 5)); in CopyBytes()
4782 dsrl(scratch, scratch, 8); in CopyBytes()
4783 sb(scratch, MemOperand(dst, 4)); in CopyBytes()
4784 dsrl(scratch, scratch, 8); in CopyBytes()
4785 sb(scratch, MemOperand(dst, 3)); in CopyBytes()
4786 dsrl(scratch, scratch, 8); in CopyBytes()
4787 sb(scratch, MemOperand(dst, 2)); in CopyBytes()
4788 dsrl(scratch, scratch, 8); in CopyBytes()
4789 sb(scratch, MemOperand(dst, 1)); in CopyBytes()
4790 dsrl(scratch, scratch, 8); in CopyBytes()
4791 sb(scratch, MemOperand(dst, 0)); in CopyBytes()
4802 lbu(scratch, MemOperand(src)); in CopyBytes()
4804 sb(scratch, MemOperand(dst)); in CopyBytes()
4826 Register scratch, in CheckFastElements() argument
4832 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastElements()
4833 Branch(fail, hi, scratch, in CheckFastElements()
4839 Register scratch, in CheckFastObjectElements() argument
4845 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastObjectElements()
4846 Branch(fail, ls, scratch, in CheckFastObjectElements()
4848 Branch(fail, hi, scratch, in CheckFastObjectElements()
4854 Register scratch, in CheckFastSmiElements() argument
4858 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastSmiElements()
4859 Branch(fail, hi, scratch, in CheckFastSmiElements()
4976 Register scratch, in CompareMapAndBranch() argument
4981 ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); in CompareMapAndBranch()
4982 CompareMapAndBranch(scratch, map, early_success, cond, branch_to); in CompareMapAndBranch()
4996 Register scratch, in CheckMap() argument
5004 CompareMapAndBranch(obj, scratch, map, &success, ne, fail); in CheckMap()
5025 Register scratch, in CheckMap() argument
5032 ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); in CheckMap()
5034 Branch(fail, ne, scratch, Operand(at)); in CheckMap()
5399 Register scratch, in IsObjectJSStringType() argument
5403 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in IsObjectJSStringType()
5404 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); in IsObjectJSStringType()
5405 And(scratch, scratch, Operand(kIsNotStringMask)); in IsObjectJSStringType()
5406 Branch(fail, ne, scratch, Operand(zero_reg)); in IsObjectJSStringType()
5411 Register scratch, in IsObjectNameType() argument
5413 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in IsObjectNameType()
5414 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); in IsObjectNameType()
5415 Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE)); in IsObjectNameType()
5438 Register scratch, Label* miss) { in TryGetFunctionPrototype() argument
5451 GetObjectType(result, scratch, scratch); in TryGetFunctionPrototype()
5452 Branch(&done, ne, scratch, Operand(MAP_TYPE)); in TryGetFunctionPrototype()
5571 Label* no_overflow_label, Register scratch) { in AddBranchOvf() argument
5574 scratch); in AddBranchOvf()
5583 DCHECK(!dst.is(scratch)); in AddBranchOvf()
5585 DCHECK(!scratch.is(overflow_dst)); in AddBranchOvf()
5588 mov(scratch, left); // Preserve left. in AddBranchOvf()
5591 xor_(scratch, dst, scratch); // Original left. in AddBranchOvf()
5595 and_(overflow_dst, overflow_dst, scratch); in AddBranchOvf()
5600 Addu(scratch, zero_reg, right); in AddBranchOvf()
5601 xor_(scratch, dst, scratch); in AddBranchOvf()
5602 and_(overflow_dst, scratch, overflow_dst); in AddBranchOvf()
5611 Label* no_overflow_label, Register scratch) { in AddBranchOvf() argument
5615 DCHECK(!dst.is(scratch)); in AddBranchOvf()
5616 Register left_reg = left.is(dst) ? scratch : left; in AddBranchOvf()
5631 DCHECK(!dst.is(scratch)); in AddBranchOvf()
5633 DCHECK(!scratch.is(overflow_dst)); in AddBranchOvf()
5636 DCHECK(!left.is(scratch)); in AddBranchOvf()
5637 DCHECK(!right.is(scratch)); in AddBranchOvf()
5645 mov(scratch, left); // Preserve left. in AddBranchOvf()
5647 xor_(scratch, dst, scratch); // Original left. in AddBranchOvf()
5649 and_(overflow_dst, overflow_dst, scratch); in AddBranchOvf()
5651 mov(scratch, right); // Preserve right. in AddBranchOvf()
5653 xor_(scratch, dst, scratch); // Original right. in AddBranchOvf()
5655 and_(overflow_dst, overflow_dst, scratch); in AddBranchOvf()
5659 xor_(scratch, dst, right); in AddBranchOvf()
5660 and_(overflow_dst, scratch, overflow_dst); in AddBranchOvf()
5668 Label* no_overflow_label, Register scratch) { in SubBranchOvf() argument
5672 scratch); in SubBranchOvf()
5675 DCHECK(!dst.is(scratch)); in SubBranchOvf()
5677 DCHECK(!scratch.is(overflow_dst)); in SubBranchOvf()
5679 DCHECK(!left.is(scratch)); in SubBranchOvf()
5681 mov(scratch, left); // Preserve left. in SubBranchOvf()
5686 xor_(overflow_dst, scratch, overflow_dst); // scratch is original left. in SubBranchOvf()
5687 xor_(scratch, dst, scratch); // scratch is original left. in SubBranchOvf()
5688 and_(overflow_dst, scratch, overflow_dst); in SubBranchOvf()
5693 Addu(scratch, zero_reg, right); in SubBranchOvf()
5694 xor_(scratch, left, scratch); in SubBranchOvf()
5695 and_(overflow_dst, scratch, overflow_dst); in SubBranchOvf()
5703 Label* no_overflow_label, Register scratch) { in SubBranchOvf() argument
5706 DCHECK(!dst.is(scratch)); in SubBranchOvf()
5708 DCHECK(!scratch.is(overflow_dst)); in SubBranchOvf()
5711 DCHECK(!scratch.is(left)); in SubBranchOvf()
5712 DCHECK(!scratch.is(right)); in SubBranchOvf()
5724 mov(scratch, left); // Preserve left. in SubBranchOvf()
5726 xor_(overflow_dst, dst, scratch); // scratch is original left. in SubBranchOvf()
5727 xor_(scratch, scratch, right); // scratch is original left. in SubBranchOvf()
5728 and_(overflow_dst, scratch, overflow_dst); in SubBranchOvf()
5730 mov(scratch, right); // Preserve right. in SubBranchOvf()
5733 xor_(scratch, left, scratch); // Original right. in SubBranchOvf()
5734 and_(overflow_dst, scratch, overflow_dst); in SubBranchOvf()
5738 xor_(scratch, left, right); in SubBranchOvf()
5739 and_(overflow_dst, scratch, overflow_dst); in SubBranchOvf()
5746 Label* no_overflow_label, Register scratch) { in DaddBranchOvf() argument
5749 scratch); in DaddBranchOvf()
5752 DCHECK(!dst.is(scratch)); in DaddBranchOvf()
5754 DCHECK(!scratch.is(overflow_dst)); in DaddBranchOvf()
5758 mov(scratch, left); // Preserve left. in DaddBranchOvf()
5760 xor_(scratch, dst, scratch); // Original left. in DaddBranchOvf()
5762 and_(overflow_dst, overflow_dst, scratch); in DaddBranchOvf()
5765 xor_(scratch, dst, overflow_dst); in DaddBranchOvf()
5767 and_(overflow_dst, scratch, overflow_dst); in DaddBranchOvf()
5776 Label* no_overflow_label, Register scratch) { in DaddBranchOvf() argument
5778 DCHECK(!dst.is(scratch)); in DaddBranchOvf()
5780 DCHECK(!scratch.is(overflow_dst)); in DaddBranchOvf()
5783 DCHECK(!left.is(scratch)); in DaddBranchOvf()
5784 DCHECK(!right.is(scratch)); in DaddBranchOvf()
5792 mov(scratch, left); // Preserve left. in DaddBranchOvf()
5794 xor_(scratch, dst, scratch); // Original left. in DaddBranchOvf()
5796 and_(overflow_dst, overflow_dst, scratch); in DaddBranchOvf()
5798 mov(scratch, right); // Preserve right. in DaddBranchOvf()
5800 xor_(scratch, dst, scratch); // Original right. in DaddBranchOvf()
5802 and_(overflow_dst, overflow_dst, scratch); in DaddBranchOvf()
5806 xor_(scratch, dst, right); in DaddBranchOvf()
5807 and_(overflow_dst, scratch, overflow_dst); in DaddBranchOvf()
5815 Label* no_overflow_label, Register scratch) { in DsubBranchOvf() argument
5819 scratch); in DsubBranchOvf()
5822 DCHECK(!dst.is(scratch)); in DsubBranchOvf()
5824 DCHECK(!scratch.is(overflow_dst)); in DsubBranchOvf()
5826 DCHECK(!left.is(scratch)); in DsubBranchOvf()
5829 mov(scratch, left); // Preserve left. in DsubBranchOvf()
5831 xor_(overflow_dst, scratch, overflow_dst); // scratch is original left. in DsubBranchOvf()
5832 xor_(scratch, dst, scratch); // scratch is original left. in DsubBranchOvf()
5833 and_(overflow_dst, scratch, overflow_dst); in DsubBranchOvf()
5836 xor_(scratch, left, overflow_dst); in DsubBranchOvf()
5838 and_(overflow_dst, scratch, overflow_dst); in DsubBranchOvf()
5847 Label* no_overflow_label, Register scratch) { in DsubBranchOvf() argument
5850 DCHECK(!dst.is(scratch)); in DsubBranchOvf()
5852 DCHECK(!scratch.is(overflow_dst)); in DsubBranchOvf()
5855 DCHECK(!scratch.is(left)); in DsubBranchOvf()
5856 DCHECK(!scratch.is(right)); in DsubBranchOvf()
5868 mov(scratch, left); // Preserve left. in DsubBranchOvf()
5870 xor_(overflow_dst, dst, scratch); // scratch is original left. in DsubBranchOvf()
5871 xor_(scratch, scratch, right); // scratch is original left. in DsubBranchOvf()
5872 and_(overflow_dst, scratch, overflow_dst); in DsubBranchOvf()
5874 mov(scratch, right); // Preserve right. in DsubBranchOvf()
5877 xor_(scratch, left, scratch); // Original right. in DsubBranchOvf()
5878 and_(overflow_dst, scratch, overflow_dst); in DsubBranchOvf()
5882 xor_(scratch, left, right); in DsubBranchOvf()
5883 and_(overflow_dst, scratch, overflow_dst); in DsubBranchOvf()
6081 Register scratch, in LoadTransitionedArrayMapConditional() argument
6087 ld(scratch, NativeContextMemOperand()); in LoadTransitionedArrayMapConditional()
6088 ld(at, ContextMemOperand(scratch, Context::ArrayMapIndex(expected_kind))); in LoadTransitionedArrayMapConditional()
6093 ContextMemOperand(scratch, Context::ArrayMapIndex(transitioned_kind))); in LoadTransitionedArrayMapConditional()
6105 Register scratch) { in LoadGlobalFunctionInitialMap() argument
6110 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK); in LoadGlobalFunctionInitialMap()
6370 Register scratch, in JumpIfNotPowerOfTwoOrZero() argument
6372 Dsubu(scratch, reg, Operand(1)); in JumpIfNotPowerOfTwoOrZero()
6374 scratch, Operand(zero_reg)); in JumpIfNotPowerOfTwoOrZero()
6375 and_(at, scratch, reg); // In the delay slot. in JumpIfNotPowerOfTwoOrZero()
6479 Register scratch, in JumpIfSmi() argument
6482 andi(scratch, value, kSmiTagMask); in JumpIfSmi()
6483 Branch(bd, smi_label, eq, scratch, Operand(zero_reg)); in JumpIfSmi()
6488 Register scratch, in JumpIfNotSmi() argument
6491 andi(scratch, value, kSmiTagMask); in JumpIfNotSmi()
6492 Branch(bd, not_smi_label, ne, scratch, Operand(zero_reg)); in JumpIfNotSmi()
6620 Register scratch) { in AssertUndefinedOrAllocationSite() argument
6624 LoadRoot(scratch, Heap::kUndefinedValueRootIndex); in AssertUndefinedOrAllocationSite()
6625 Branch(&done_checking, eq, object, Operand(scratch)); in AssertUndefinedOrAllocationSite()
6627 LoadRoot(scratch, Heap::kAllocationSiteMapRootIndex); in AssertUndefinedOrAllocationSite()
6628 Assert(eq, kExpectedUndefinedOrCell, t8, Operand(scratch)); in AssertUndefinedOrAllocationSite()
6645 Register scratch, in JumpIfNotHeapNumber() argument
6647 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in JumpIfNotHeapNumber()
6649 Branch(on_not_heap_number, ne, scratch, Operand(heap_number_map)); in JumpIfNotHeapNumber()
6698 Register scratch, in JumpIfInstanceTypeIsNotSequentialOneByte() argument
6704 And(scratch, type, Operand(kFlatOneByteStringMask)); in JumpIfInstanceTypeIsNotSequentialOneByte()
6705 Branch(failure, ne, scratch, Operand(kFlatOneByteStringTag)); in JumpIfInstanceTypeIsNotSequentialOneByte()
6728 Register scratch, in EmitSeqStringSetCharCheck() argument
6738 li(scratch, Operand(encoding_mask)); in EmitSeqStringSetCharCheck()
6739 Check(eq, kUnexpectedStringType, at, Operand(scratch)); in EmitSeqStringSetCharCheck()
6753 Register scratch) { in PrepareCallCFunction() argument
6768 mov(scratch, sp); in PrepareCallCFunction()
6772 sd(scratch, MemOperand(sp, stack_passed_arguments * kPointerSize)); in PrepareCallCFunction()
6780 Register scratch) { in PrepareCallCFunction() argument
6781 PrepareCallCFunction(num_reg_arguments, 0, scratch); in PrepareCallCFunction()
6866 Register scratch, in CheckPageFlag() argument
6870 And(scratch, object, Operand(~Page::kPageAlignmentMask)); in CheckPageFlag()
6871 ld(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
6872 And(scratch, scratch, Operand(mask)); in CheckPageFlag()
6873 Branch(condition_met, cc, scratch, Operand(zero_reg)); in CheckPageFlag()