Lines Matching refs:scratch
158 Register scratch, in InNewSpace() argument
162 And(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); in InNewSpace()
163 Branch(branch, cc, scratch, in InNewSpace()
373 Register scratch, in RememberedSetHelper() argument
379 JumpIfNotInNewSpace(object, scratch, &ok); in RememberedSetHelper()
387 ld(scratch, MemOperand(t8)); in RememberedSetHelper()
389 sd(address, MemOperand(scratch)); in RememberedSetHelper()
390 Daddu(scratch, scratch, kPointerSize); in RememberedSetHelper()
392 sd(scratch, MemOperand(t8)); in RememberedSetHelper()
395 And(t8, scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); in RememberedSetHelper()
396 DCHECK(!scratch.is(t8)); in RememberedSetHelper()
419 Register scratch, in CheckAccessGlobalProxy() argument
423 DCHECK(!holder_reg.is(scratch)); in CheckAccessGlobalProxy()
425 DCHECK(!scratch.is(at)); in CheckAccessGlobalProxy()
428 ld(scratch, MemOperand(fp, StandardFrameConstants::kContextOffset)); in CheckAccessGlobalProxy()
432 scratch, Operand(zero_reg)); in CheckAccessGlobalProxy()
438 ld(scratch, FieldMemOperand(scratch, offset)); in CheckAccessGlobalProxy()
439 ld(scratch, FieldMemOperand(scratch, GlobalObject::kNativeContextOffset)); in CheckAccessGlobalProxy()
445 ld(holder_reg, FieldMemOperand(scratch, HeapObject::kMapOffset)); in CheckAccessGlobalProxy()
454 Branch(&same_contexts, eq, scratch, Operand(at)); in CheckAccessGlobalProxy()
480 ld(scratch, FieldMemOperand(scratch, token_offset)); in CheckAccessGlobalProxy()
482 Branch(miss, ne, scratch, Operand(at)); in CheckAccessGlobalProxy()
491 void MacroAssembler::GetNumberHash(Register reg0, Register scratch) { in GetNumberHash() argument
493 LoadRoot(scratch, Heap::kHashSeedRootIndex); in GetNumberHash()
494 SmiUntag(scratch); in GetNumberHash()
497 xor_(reg0, reg0, scratch); in GetNumberHash()
504 nor(scratch, reg0, zero_reg); in GetNumberHash()
506 addu(reg0, scratch, at); in GetNumberHash()
521 sll(scratch, reg0, 11); in GetNumberHash()
524 addu(reg0, reg0, scratch); in GetNumberHash()
1061 void MacroAssembler::Uld(Register rd, const MemOperand& rs, Register scratch) { in Uld() argument
1067 lw(scratch, MemOperand(rs.rm(), rs.offset() + kPointerSize / 2)); in Uld()
1068 dsll32(scratch, scratch, 0); in Uld()
1069 Daddu(rd, rd, scratch); in Uld()
1075 void MacroAssembler::Usd(Register rd, const MemOperand& rs, Register scratch) { in Usd() argument
1081 dsrl32(scratch, rd, 0); in Usd()
1082 sw(scratch, MemOperand(rs.rm(), rs.offset() + kPointerSize / 2)); in Usd()
1297 FPURegister scratch) { in Cvt_d_uw() argument
1300 Cvt_d_uw(fd, t8, scratch); in Cvt_d_uw()
1306 FPURegister scratch) { in Cvt_d_uw() argument
1311 DCHECK(!fd.is(scratch)); in Cvt_d_uw()
1334 mtc1(zero_reg, scratch); in Cvt_d_uw()
1335 mthc1(at, scratch); in Cvt_d_uw()
1337 add_d(fd, fd, scratch); in Cvt_d_uw()
1365 FPURegister scratch) { in Trunc_l_ud() argument
1378 FPURegister scratch) { in Trunc_uw_d() argument
1379 Trunc_uw_d(fs, t8, scratch); in Trunc_uw_d()
1406 FPURegister scratch) { in Trunc_uw_d() argument
1407 DCHECK(!fd.is(scratch)); in Trunc_uw_d()
1412 mtc1(zero_reg, scratch); in Trunc_uw_d()
1413 mthc1(at, scratch); in Trunc_uw_d()
1417 BranchF(&simple_convert, NULL, lt, fd, scratch); in Trunc_uw_d()
1421 sub_d(scratch, fd, scratch); in Trunc_uw_d()
1422 trunc_w_d(scratch, scratch); in Trunc_uw_d()
1423 mfc1(rs, scratch); in Trunc_uw_d()
1430 trunc_w_d(scratch, fd); in Trunc_uw_d()
1431 mfc1(rs, scratch); in Trunc_uw_d()
1438 FPURegister ft, FPURegister scratch) { in Madd_d() argument
1443 DCHECK(!fr.is(scratch) && !fs.is(scratch) && !ft.is(scratch)); in Madd_d()
1444 mul_d(scratch, fs, ft); in Madd_d()
1445 add_d(fd, fr, scratch); in Madd_d()
1645 Register scratch, in EmitFPUTruncate() argument
1649 DCHECK(!result.is(scratch)); in EmitFPUTruncate()
1651 DCHECK(!except_flag.is(scratch)); in EmitFPUTruncate()
1672 cfc1(scratch, FCSR); in EmitFPUTruncate()
1695 ctc1(scratch, FCSR); in EmitFPUTruncate()
1710 Register scratch = at; in TryInlineTruncateDoubleToI() local
1720 cfc1(scratch, FCSR); in TryInlineTruncateDoubleToI()
1723 And(scratch, in TryInlineTruncateDoubleToI()
1724 scratch, in TryInlineTruncateDoubleToI()
1727 Branch(done, eq, scratch, Operand(zero_reg)); in TryInlineTruncateDoubleToI()
1779 Register scratch, in TruncateNumberToI() argument
1785 JumpIfNotHeapNumber(object, heap_number_map, scratch, not_number); in TruncateNumberToI()
1906 Register scratch = at; in BranchShort() local
1928 slt(scratch, r2, rs); in BranchShort()
1929 bne(scratch, zero_reg, offset); in BranchShort()
1936 slt(scratch, rs, r2); in BranchShort()
1937 beq(scratch, zero_reg, offset); in BranchShort()
1944 slt(scratch, rs, r2); in BranchShort()
1945 bne(scratch, zero_reg, offset); in BranchShort()
1952 slt(scratch, r2, rs); in BranchShort()
1953 beq(scratch, zero_reg, offset); in BranchShort()
1961 sltu(scratch, r2, rs); in BranchShort()
1962 bne(scratch, zero_reg, offset); in BranchShort()
1969 sltu(scratch, rs, r2); in BranchShort()
1970 beq(scratch, zero_reg, offset); in BranchShort()
1978 sltu(scratch, rs, r2); in BranchShort()
1979 bne(scratch, zero_reg, offset); in BranchShort()
1986 sltu(scratch, r2, rs); in BranchShort()
1987 beq(scratch, zero_reg, offset); in BranchShort()
2004 DCHECK(!scratch.is(rs)); in BranchShort()
2005 r2 = scratch; in BranchShort()
2011 DCHECK(!scratch.is(rs)); in BranchShort()
2012 r2 = scratch; in BranchShort()
2021 r2 = scratch; in BranchShort()
2023 slt(scratch, r2, rs); in BranchShort()
2024 bne(scratch, zero_reg, offset); in BranchShort()
2031 slti(scratch, rs, rt.imm64_); in BranchShort()
2032 beq(scratch, zero_reg, offset); in BranchShort()
2034 r2 = scratch; in BranchShort()
2036 slt(scratch, rs, r2); in BranchShort()
2037 beq(scratch, zero_reg, offset); in BranchShort()
2044 slti(scratch, rs, rt.imm64_); in BranchShort()
2045 bne(scratch, zero_reg, offset); in BranchShort()
2047 r2 = scratch; in BranchShort()
2049 slt(scratch, rs, r2); in BranchShort()
2050 bne(scratch, zero_reg, offset); in BranchShort()
2057 r2 = scratch; in BranchShort()
2059 slt(scratch, r2, rs); in BranchShort()
2060 beq(scratch, zero_reg, offset); in BranchShort()
2068 r2 = scratch; in BranchShort()
2070 sltu(scratch, r2, rs); in BranchShort()
2071 bne(scratch, zero_reg, offset); in BranchShort()
2078 sltiu(scratch, rs, rt.imm64_); in BranchShort()
2079 beq(scratch, zero_reg, offset); in BranchShort()
2081 r2 = scratch; in BranchShort()
2083 sltu(scratch, rs, r2); in BranchShort()
2084 beq(scratch, zero_reg, offset); in BranchShort()
2092 sltiu(scratch, rs, rt.imm64_); in BranchShort()
2093 bne(scratch, zero_reg, offset); in BranchShort()
2095 r2 = scratch; in BranchShort()
2097 sltu(scratch, rs, r2); in BranchShort()
2098 bne(scratch, zero_reg, offset); in BranchShort()
2105 r2 = scratch; in BranchShort()
2107 sltu(scratch, r2, rs); in BranchShort()
2108 beq(scratch, zero_reg, offset); in BranchShort()
2140 Register scratch = at; in BranchShort() local
2166 slt(scratch, r2, rs); in BranchShort()
2168 bne(scratch, zero_reg, offset); in BranchShort()
2176 slt(scratch, rs, r2); in BranchShort()
2178 beq(scratch, zero_reg, offset); in BranchShort()
2186 slt(scratch, rs, r2); in BranchShort()
2188 bne(scratch, zero_reg, offset); in BranchShort()
2196 slt(scratch, r2, rs); in BranchShort()
2198 beq(scratch, zero_reg, offset); in BranchShort()
2207 sltu(scratch, r2, rs); in BranchShort()
2209 bne(scratch, zero_reg, offset); in BranchShort()
2217 sltu(scratch, rs, r2); in BranchShort()
2219 beq(scratch, zero_reg, offset); in BranchShort()
2227 sltu(scratch, rs, r2); in BranchShort()
2229 bne(scratch, zero_reg, offset); in BranchShort()
2237 sltu(scratch, r2, rs); in BranchShort()
2239 beq(scratch, zero_reg, offset); in BranchShort()
2256 DCHECK(!scratch.is(rs)); in BranchShort()
2257 r2 = scratch; in BranchShort()
2263 DCHECK(!scratch.is(rs)); in BranchShort()
2264 r2 = scratch; in BranchShort()
2275 DCHECK(!scratch.is(rs)); in BranchShort()
2276 r2 = scratch; in BranchShort()
2278 slt(scratch, r2, rs); in BranchShort()
2280 bne(scratch, zero_reg, offset); in BranchShort()
2288 slti(scratch, rs, rt.imm64_); in BranchShort()
2290 beq(scratch, zero_reg, offset); in BranchShort()
2292 DCHECK(!scratch.is(rs)); in BranchShort()
2293 r2 = scratch; in BranchShort()
2295 slt(scratch, rs, r2); in BranchShort()
2297 beq(scratch, zero_reg, offset); in BranchShort()
2305 slti(scratch, rs, rt.imm64_); in BranchShort()
2307 bne(scratch, zero_reg, offset); in BranchShort()
2309 DCHECK(!scratch.is(rs)); in BranchShort()
2310 r2 = scratch; in BranchShort()
2312 slt(scratch, rs, r2); in BranchShort()
2314 bne(scratch, zero_reg, offset); in BranchShort()
2322 DCHECK(!scratch.is(rs)); in BranchShort()
2323 r2 = scratch; in BranchShort()
2325 slt(scratch, r2, rs); in BranchShort()
2327 beq(scratch, zero_reg, offset); in BranchShort()
2336 DCHECK(!scratch.is(rs)); in BranchShort()
2337 r2 = scratch; in BranchShort()
2339 sltu(scratch, r2, rs); in BranchShort()
2341 bne(scratch, zero_reg, offset); in BranchShort()
2349 sltiu(scratch, rs, rt.imm64_); in BranchShort()
2351 beq(scratch, zero_reg, offset); in BranchShort()
2353 DCHECK(!scratch.is(rs)); in BranchShort()
2354 r2 = scratch; in BranchShort()
2356 sltu(scratch, rs, r2); in BranchShort()
2358 beq(scratch, zero_reg, offset); in BranchShort()
2366 sltiu(scratch, rs, rt.imm64_); in BranchShort()
2368 bne(scratch, zero_reg, offset); in BranchShort()
2370 DCHECK(!scratch.is(rs)); in BranchShort()
2371 r2 = scratch; in BranchShort()
2373 sltu(scratch, rs, r2); in BranchShort()
2375 bne(scratch, zero_reg, offset); in BranchShort()
2383 DCHECK(!scratch.is(rs)); in BranchShort()
2384 r2 = scratch; in BranchShort()
2386 sltu(scratch, r2, rs); in BranchShort()
2388 beq(scratch, zero_reg, offset); in BranchShort()
2477 Register scratch = at; in BranchAndLinkShort() local
2482 r2 = scratch; in BranchAndLinkShort()
2506 slt(scratch, r2, rs); in BranchAndLinkShort()
2507 beq(scratch, zero_reg, 2); in BranchAndLinkShort()
2513 slt(scratch, rs, r2); in BranchAndLinkShort()
2514 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2520 slt(scratch, rs, r2); in BranchAndLinkShort()
2521 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2527 slt(scratch, r2, rs); in BranchAndLinkShort()
2528 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2537 sltu(scratch, r2, rs); in BranchAndLinkShort()
2538 beq(scratch, zero_reg, 2); in BranchAndLinkShort()
2544 sltu(scratch, rs, r2); in BranchAndLinkShort()
2545 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2551 sltu(scratch, rs, r2); in BranchAndLinkShort()
2552 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2558 sltu(scratch, r2, rs); in BranchAndLinkShort()
2559 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2589 Register scratch = at; in BranchAndLinkShort() local
2593 r2 = scratch; in BranchAndLinkShort()
2620 slt(scratch, r2, rs); in BranchAndLinkShort()
2621 beq(scratch, zero_reg, 2); in BranchAndLinkShort()
2628 slt(scratch, rs, r2); in BranchAndLinkShort()
2629 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2636 slt(scratch, rs, r2); in BranchAndLinkShort()
2637 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2644 slt(scratch, r2, rs); in BranchAndLinkShort()
2645 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2655 sltu(scratch, r2, rs); in BranchAndLinkShort()
2656 beq(scratch, zero_reg, 2); in BranchAndLinkShort()
2663 sltu(scratch, rs, r2); in BranchAndLinkShort()
2664 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2671 sltu(scratch, rs, r2); in BranchAndLinkShort()
2672 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2679 sltu(scratch, r2, rs); in BranchAndLinkShort()
2680 bne(scratch, zero_reg, 2); in BranchAndLinkShort()
2983 Register scratch) { in Swap() argument
2984 if (scratch.is(no_reg)) { in Swap()
2989 mov(scratch, reg1); in Swap()
2991 mov(reg2, scratch); in Swap()
3007 void MacroAssembler::PushRegisterAsTwoSmis(Register src, Register scratch) { in PushRegisterAsTwoSmis() argument
3008 DCHECK(!src.is(scratch)); in PushRegisterAsTwoSmis()
3009 mov(scratch, src); in PushRegisterAsTwoSmis()
3013 dsll32(scratch, scratch, 0); in PushRegisterAsTwoSmis()
3014 push(scratch); in PushRegisterAsTwoSmis()
3018 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) { in PopRegisterAsTwoSmis() argument
3019 DCHECK(!dst.is(scratch)); in PopRegisterAsTwoSmis()
3020 pop(scratch); in PopRegisterAsTwoSmis()
3021 dsrl32(scratch, scratch, 0); in PopRegisterAsTwoSmis()
3025 or_(dst, dst, scratch); in PopRegisterAsTwoSmis()
3359 Register scratch) { in UndoAllocationInNewSpace() argument
3367 li(scratch, Operand(new_space_allocation_top)); in UndoAllocationInNewSpace()
3368 ld(scratch, MemOperand(scratch)); in UndoAllocationInNewSpace()
3370 object, Operand(scratch)); in UndoAllocationInNewSpace()
3373 li(scratch, Operand(new_space_allocation_top)); in UndoAllocationInNewSpace()
3374 sd(object, MemOperand(scratch)); in UndoAllocationInNewSpace()
3575 Register scratch) { in CopyBytes() argument
3581 And(scratch, src, kPointerSize - 1); in CopyBytes()
3582 Branch(&word_loop, eq, scratch, Operand(zero_reg)); in CopyBytes()
3583 lbu(scratch, MemOperand(src)); in CopyBytes()
3585 sb(scratch, MemOperand(dst)); in CopyBytes()
3593 And(scratch, src, kPointerSize - 1); in CopyBytes()
3595 scratch, Operand(zero_reg)); in CopyBytes()
3598 ld(scratch, MemOperand(src)); in CopyBytes()
3603 sb(scratch, MemOperand(dst, 0)); in CopyBytes()
3604 dsrl(scratch, scratch, 8); in CopyBytes()
3605 sb(scratch, MemOperand(dst, 1)); in CopyBytes()
3606 dsrl(scratch, scratch, 8); in CopyBytes()
3607 sb(scratch, MemOperand(dst, 2)); in CopyBytes()
3608 dsrl(scratch, scratch, 8); in CopyBytes()
3609 sb(scratch, MemOperand(dst, 3)); in CopyBytes()
3610 dsrl(scratch, scratch, 8); in CopyBytes()
3611 sb(scratch, MemOperand(dst, 4)); in CopyBytes()
3612 dsrl(scratch, scratch, 8); in CopyBytes()
3613 sb(scratch, MemOperand(dst, 5)); in CopyBytes()
3614 dsrl(scratch, scratch, 8); in CopyBytes()
3615 sb(scratch, MemOperand(dst, 6)); in CopyBytes()
3616 dsrl(scratch, scratch, 8); in CopyBytes()
3617 sb(scratch, MemOperand(dst, 7)); in CopyBytes()
3627 lbu(scratch, MemOperand(src)); in CopyBytes()
3629 sb(scratch, MemOperand(dst)); in CopyBytes()
3651 Register scratch, in CheckFastElements() argument
3657 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastElements()
3658 Branch(fail, hi, scratch, in CheckFastElements()
3664 Register scratch, in CheckFastObjectElements() argument
3670 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastObjectElements()
3671 Branch(fail, ls, scratch, in CheckFastObjectElements()
3673 Branch(fail, hi, scratch, in CheckFastObjectElements()
3679 Register scratch, in CheckFastSmiElements() argument
3683 lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); in CheckFastSmiElements()
3684 Branch(fail, hi, scratch, in CheckFastSmiElements()
3761 Register scratch, in CompareMapAndBranch() argument
3766 ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); in CompareMapAndBranch()
3767 CompareMapAndBranch(scratch, map, early_success, cond, branch_to); in CompareMapAndBranch()
3781 Register scratch, in CheckMap() argument
3789 CompareMapAndBranch(obj, scratch, map, &success, ne, fail); in CheckMap()
3795 Register scratch, in DispatchMap() argument
3803 ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); in DispatchMap()
3804 Jump(success, RelocInfo::CODE_TARGET, eq, scratch, Operand(map)); in DispatchMap()
3810 Register scratch, in CheckMap() argument
3817 ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); in CheckMap()
3819 Branch(fail, ne, scratch, Operand(at)); in CheckMap()
4042 Register scratch, in IsObjectJSObjectType() argument
4045 IsInstanceJSObjectType(map, scratch, fail); in IsObjectJSObjectType()
4050 Register scratch, in IsInstanceJSObjectType() argument
4052 lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); in IsInstanceJSObjectType()
4053 Branch(fail, lt, scratch, Operand(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); in IsInstanceJSObjectType()
4054 Branch(fail, gt, scratch, Operand(LAST_NONCALLABLE_SPEC_OBJECT_TYPE)); in IsInstanceJSObjectType()
4059 Register scratch, in IsObjectJSStringType() argument
4063 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in IsObjectJSStringType()
4064 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); in IsObjectJSStringType()
4065 And(scratch, scratch, Operand(kIsNotStringMask)); in IsObjectJSStringType()
4066 Branch(fail, ne, scratch, Operand(zero_reg)); in IsObjectJSStringType()
4071 Register scratch, in IsObjectNameType() argument
4073 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in IsObjectNameType()
4074 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); in IsObjectNameType()
4075 Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE)); in IsObjectNameType()
4085 Register scratch, in TryGetFunctionPrototype() argument
4094 GetObjectType(function, result, scratch); in TryGetFunctionPrototype()
4095 Branch(miss, ne, scratch, Operand(JS_FUNCTION_TYPE)); in TryGetFunctionPrototype()
4097 ld(scratch, in TryGetFunctionPrototype()
4099 lwu(scratch, in TryGetFunctionPrototype()
4100 FieldMemOperand(scratch, SharedFunctionInfo::kCompilerHintsOffset)); in TryGetFunctionPrototype()
4101 And(scratch, scratch, in TryGetFunctionPrototype()
4103 Branch(miss, ne, scratch, Operand(zero_reg)); in TryGetFunctionPrototype()
4106 lbu(scratch, FieldMemOperand(result, Map::kBitFieldOffset)); in TryGetFunctionPrototype()
4107 And(scratch, scratch, Operand(1 << Map::kHasNonInstancePrototype)); in TryGetFunctionPrototype()
4108 Branch(&non_instance, ne, scratch, Operand(zero_reg)); in TryGetFunctionPrototype()
4123 GetObjectType(result, scratch, scratch); in TryGetFunctionPrototype()
4124 Branch(&done, ne, scratch, Operand(MAP_TYPE)); in TryGetFunctionPrototype()
4374 Register scratch) { in AdduAndCheckForOverflow() argument
4376 DCHECK(!dst.is(scratch)); in AdduAndCheckForOverflow()
4377 DCHECK(!overflow_dst.is(scratch)); in AdduAndCheckForOverflow()
4383 DCHECK(!scratch.is(t9)); in AdduAndCheckForOverflow()
4392 mov(scratch, left); // Preserve left. in AdduAndCheckForOverflow()
4394 xor_(scratch, dst, scratch); // Original left. in AdduAndCheckForOverflow()
4396 and_(overflow_dst, overflow_dst, scratch); in AdduAndCheckForOverflow()
4398 mov(scratch, right); // Preserve right. in AdduAndCheckForOverflow()
4400 xor_(scratch, dst, scratch); // Original right. in AdduAndCheckForOverflow()
4402 and_(overflow_dst, overflow_dst, scratch); in AdduAndCheckForOverflow()
4406 xor_(scratch, dst, right); in AdduAndCheckForOverflow()
4407 and_(overflow_dst, scratch, overflow_dst); in AdduAndCheckForOverflow()
4416 Register scratch) { in SubuAndCheckForOverflow() argument
4418 DCHECK(!dst.is(scratch)); in SubuAndCheckForOverflow()
4419 DCHECK(!overflow_dst.is(scratch)); in SubuAndCheckForOverflow()
4422 DCHECK(!scratch.is(left)); in SubuAndCheckForOverflow()
4423 DCHECK(!scratch.is(right)); in SubuAndCheckForOverflow()
4434 mov(scratch, left); // Preserve left. in SubuAndCheckForOverflow()
4436 xor_(overflow_dst, dst, scratch); // scratch is original left. in SubuAndCheckForOverflow()
4437 xor_(scratch, scratch, right); // scratch is original left. in SubuAndCheckForOverflow()
4438 and_(overflow_dst, scratch, overflow_dst); in SubuAndCheckForOverflow()
4440 mov(scratch, right); // Preserve right. in SubuAndCheckForOverflow()
4443 xor_(scratch, left, scratch); // Original right. in SubuAndCheckForOverflow()
4444 and_(overflow_dst, scratch, overflow_dst); in SubuAndCheckForOverflow()
4448 xor_(scratch, left, right); in SubuAndCheckForOverflow()
4449 and_(overflow_dst, scratch, overflow_dst); in SubuAndCheckForOverflow()
4694 Register scratch, in LoadTransitionedArrayMapConditional() argument
4697 ld(scratch, in LoadTransitionedArrayMapConditional()
4699 ld(scratch, FieldMemOperand(scratch, GlobalObject::kNativeContextOffset)); in LoadTransitionedArrayMapConditional()
4702 ld(scratch, in LoadTransitionedArrayMapConditional()
4703 MemOperand(scratch, in LoadTransitionedArrayMapConditional()
4707 ld(at, FieldMemOperand(scratch, offset)); in LoadTransitionedArrayMapConditional()
4713 ld(map_in_out, FieldMemOperand(scratch, offset)); in LoadTransitionedArrayMapConditional()
4731 Register scratch) { in LoadGlobalFunctionInitialMap() argument
4736 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK); in LoadGlobalFunctionInitialMap()
4971 Register scratch, in JumpIfNotPowerOfTwoOrZero() argument
4973 Dsubu(scratch, reg, Operand(1)); in JumpIfNotPowerOfTwoOrZero()
4975 scratch, Operand(zero_reg)); in JumpIfNotPowerOfTwoOrZero()
4976 and_(at, scratch, reg); // In the delay slot. in JumpIfNotPowerOfTwoOrZero()
5080 Register scratch, in JumpIfSmi() argument
5083 andi(scratch, value, kSmiTagMask); in JumpIfSmi()
5084 Branch(bd, smi_label, eq, scratch, Operand(zero_reg)); in JumpIfSmi()
5089 Register scratch, in JumpIfNotSmi() argument
5092 andi(scratch, value, kSmiTagMask); in JumpIfNotSmi()
5093 Branch(bd, not_smi_label, ne, scratch, Operand(zero_reg)); in JumpIfNotSmi()
5175 Register scratch) { in AssertUndefinedOrAllocationSite() argument
5179 LoadRoot(scratch, Heap::kUndefinedValueRootIndex); in AssertUndefinedOrAllocationSite()
5180 Branch(&done_checking, eq, object, Operand(scratch)); in AssertUndefinedOrAllocationSite()
5183 LoadRoot(scratch, Heap::kAllocationSiteMapRootIndex); in AssertUndefinedOrAllocationSite()
5184 Assert(eq, kExpectedUndefinedOrCell, object, Operand(scratch)); in AssertUndefinedOrAllocationSite()
5202 Register scratch, in JumpIfNotHeapNumber() argument
5204 ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); in JumpIfNotHeapNumber()
5206 Branch(on_not_heap_number, ne, scratch, Operand(heap_number_map)); in JumpIfNotHeapNumber()
5267 Register scratch = scratch1; in LookupNumberStringCache() local
5269 dsra32(scratch, scratch, 0); in LookupNumberStringCache()
5270 And(scratch, mask, Operand(scratch)); in LookupNumberStringCache()
5274 dsll(scratch, scratch, kPointerSizeLog2 + 1); in LookupNumberStringCache()
5275 Daddu(scratch, number_string_cache, scratch); in LookupNumberStringCache()
5278 ld(probe, FieldMemOperand(scratch, FixedArray::kHeaderSize)); in LookupNumberStringCache()
5283 ld(result, FieldMemOperand(scratch, FixedArray::kHeaderSize + kPointerSize)); in LookupNumberStringCache()
5337 Register scratch, in JumpIfInstanceTypeIsNotSequentialOneByte() argument
5343 And(scratch, type, Operand(kFlatOneByteStringMask)); in JumpIfInstanceTypeIsNotSequentialOneByte()
5344 Branch(failure, ne, scratch, Operand(kFlatOneByteStringTag)); in JumpIfInstanceTypeIsNotSequentialOneByte()
5368 Register scratch, in EmitSeqStringSetCharCheck() argument
5378 li(scratch, Operand(encoding_mask)); in EmitSeqStringSetCharCheck()
5379 Check(eq, kUnexpectedStringType, at, Operand(scratch)); in EmitSeqStringSetCharCheck()
5393 Register scratch) { in PrepareCallCFunction() argument
5408 mov(scratch, sp); in PrepareCallCFunction()
5412 sd(scratch, MemOperand(sp, stack_passed_arguments * kPointerSize)); in PrepareCallCFunction()
5420 Register scratch) { in PrepareCallCFunction() argument
5421 PrepareCallCFunction(num_reg_arguments, 0, scratch); in PrepareCallCFunction()
5505 Register scratch, in PatchRelocatedValue() argument
5507 lwu(scratch, MemOperand(li_location)); in PatchRelocatedValue()
5510 And(scratch, scratch, kOpcodeMask); in PatchRelocatedValue()
5512 scratch, Operand(LUI)); in PatchRelocatedValue()
5513 lwu(scratch, MemOperand(li_location)); in PatchRelocatedValue()
5516 Ins(scratch, t9, 0, kImm16Bits); in PatchRelocatedValue()
5517 sw(scratch, MemOperand(li_location)); in PatchRelocatedValue()
5519 lwu(scratch, MemOperand(li_location, kInstrSize)); in PatchRelocatedValue()
5522 And(scratch, scratch, kOpcodeMask); in PatchRelocatedValue()
5524 scratch, Operand(ORI)); in PatchRelocatedValue()
5525 lwu(scratch, MemOperand(li_location, kInstrSize)); in PatchRelocatedValue()
5528 Ins(scratch, t9, 0, kImm16Bits); in PatchRelocatedValue()
5529 sw(scratch, MemOperand(li_location, kInstrSize)); in PatchRelocatedValue()
5531 lwu(scratch, MemOperand(li_location, kInstrSize * 3)); in PatchRelocatedValue()
5534 And(scratch, scratch, kOpcodeMask); in PatchRelocatedValue()
5536 scratch, Operand(ORI)); in PatchRelocatedValue()
5537 lwu(scratch, MemOperand(li_location, kInstrSize * 3)); in PatchRelocatedValue()
5540 Ins(scratch, new_value, 0, kImm16Bits); in PatchRelocatedValue()
5541 sw(scratch, MemOperand(li_location, kInstrSize * 3)); in PatchRelocatedValue()
5549 Register scratch) { in GetRelocatedValue() argument
5562 lwu(scratch, MemOperand(li_location, kInstrSize)); in GetRelocatedValue()
5564 And(scratch, scratch, kOpcodeMask); in GetRelocatedValue()
5566 scratch, Operand(ORI)); in GetRelocatedValue()
5567 lwu(scratch, MemOperand(li_location, kInstrSize)); in GetRelocatedValue()
5570 andi(scratch, scratch, kImm16Mask); in GetRelocatedValue()
5571 dsll32(scratch, scratch, 0); in GetRelocatedValue()
5573 or_(value, value, scratch); in GetRelocatedValue()
5575 lwu(scratch, MemOperand(li_location, kInstrSize * 3)); in GetRelocatedValue()
5577 And(scratch, scratch, kOpcodeMask); in GetRelocatedValue()
5579 scratch, Operand(ORI)); in GetRelocatedValue()
5580 lwu(scratch, MemOperand(li_location, kInstrSize * 3)); in GetRelocatedValue()
5583 andi(scratch, scratch, kImm16Mask); in GetRelocatedValue()
5584 dsll(scratch, scratch, kImm16Bits); in GetRelocatedValue()
5586 or_(value, value, scratch); in GetRelocatedValue()
5594 Register scratch, in CheckPageFlag() argument
5598 And(scratch, object, Operand(~Page::kPageAlignmentMask)); in CheckPageFlag()
5599 ld(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
5600 And(scratch, scratch, Operand(mask)); in CheckPageFlag()
5601 Branch(condition_met, cc, scratch, Operand(zero_reg)); in CheckPageFlag()
5606 Register scratch, in CheckMapDeprecated() argument
5609 li(scratch, Operand(map)); in CheckMapDeprecated()
5610 ld(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); in CheckMapDeprecated()
5611 And(scratch, scratch, Operand(Map::Deprecated::kMask)); in CheckMapDeprecated()
5612 Branch(if_deprecated, ne, scratch, Operand(zero_reg)); in CheckMapDeprecated()
5655 Register scratch, in JumpIfDataObject() argument
5657 DCHECK(!AreAliased(value, scratch, t8, no_reg)); in JumpIfDataObject()
5659 ld(scratch, FieldMemOperand(value, HeapObject::kMapOffset)); in JumpIfDataObject()
5661 Branch(&is_data_object, eq, t8, Operand(scratch)); in JumpIfDataObject()
5666 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); in JumpIfDataObject()
5667 And(t8, scratch, Operand(kIsIndirectStringMask | kIsNotStringMask)); in JumpIfDataObject()