Lines Matching refs:scratch
143 Register scratch =
146 GetRegisterThatIsNotOneOf(input_reg, result_reg, scratch);
148 GetRegisterThatIsNotOneOf(input_reg, result_reg, scratch, scratch2);
151 __ Push(scratch, scratch2, scratch3);
166 __ cfc1(scratch, FCSR);
171 scratch, scratch,
176 __ Branch(&error, ne, scratch, Operand(zero_reg));
197 __ Subu(scratch, result_reg, HeapNumber::kExponentMask);
198 __ Movz(result_reg, zero_reg, scratch);
199 __ Branch(&done, eq, scratch, Operand(zero_reg));
215 __ Addu(scratch, result_reg, Operand(kShiftBase + HeapNumber::kMantissaBits));
225 __ Branch(&high_shift_needed, lt, scratch, Operand(32));
237 __ sllv(input_high, input_high, scratch);
244 __ subu(scratch, at, scratch);
245 __ Branch(&pos_shift, ge, scratch, Operand(zero_reg));
247 // Negate scratch.
248 __ Subu(scratch, zero_reg, scratch);
249 __ sllv(input_low, input_low, scratch);
253 __ srlv(input_low, input_low, scratch);
258 __ mov(scratch, sign);
262 __ Movz(result_reg, input_high, scratch);
266 __ Pop(scratch, scratch2, scratch3);
294 __ li(scratch(), Operand(non_smi_exponent));
296 __ or_(scratch(), scratch(), sign());
307 __ or_(scratch(), scratch(), at);
308 __ sw(scratch(), FieldMemOperand(the_heap_number(),
310 __ sll(scratch(), the_int(), 32 - shift_distance);
312 __ sw(scratch(), FieldMemOperand(the_heap_number(),
321 __ li(scratch(), Operand(HeapNumber::kSignMask | non_smi_exponent));
322 __ sw(scratch(),
324 __ mov(scratch(), zero_reg);
326 __ sw(scratch(),
594 Register scratch,
602 __ CheckMap(input, scratch, Heap::kHeapNumberMapRootIndex, fail,
816 const Register scratch = a1;
819 __ PrepareCallCFunction(argument_count, fp_argument_count, scratch);
844 const Register scratch = t1;
858 __ UntagAndJumpIfSmi(scratch, base, &base_is_smi);
859 __ ld(scratch, FieldMemOperand(base, JSObject::kMapOffset));
860 __ Branch(&call_runtime, ne, scratch, Operand(heapnumbermap));
866 __ mtc1(scratch, single_scratch);
870 __ UntagAndJumpIfSmi(scratch, exponent, &int_exponent);
872 __ ld(scratch, FieldMemOperand(exponent, JSObject::kMapOffset));
873 __ Branch(&call_runtime, ne, scratch, Operand(heapnumbermap));
878 __ UntagAndJumpIfSmi(scratch, exponent, &int_exponent);
888 scratch,
965 // Get two copies of exponent in the registers scratch and exponent.
967 __ mov(scratch, exponent);
969 // Exponent has previously been stored into scratch as untagged integer.
970 __ mov(exponent, scratch);
978 __ Branch(&positive_exponent, ge, scratch, Operand(zero_reg));
979 __ Dsubu(scratch, zero_reg, scratch);
985 __ And(scratch2, scratch, 1);
991 __ dsra(scratch, scratch, 1);
993 __ Branch(&loop_end, eq, scratch, Operand(zero_reg));
1023 heapnumber, scratch, scratch2, heapnumbermap, &call_runtime);
1027 __ IncrementCounter(counters->math_pow(), 1, scratch, scratch2);
1033 __ PrepareCallCFunction(0, 2, scratch);
1043 __ IncrementCounter(counters->math_pow(), 1, scratch, scratch2);
1428 const Register scratch = a2;
1441 __ IsObjectJSObjectType(object, map, scratch, ¬_js_object);
1458 __ TryGetFunctionPrototype(function, prototype, scratch, &slow, true);
1462 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow);
1475 __ LoadFromSafepointRegisterSlot(scratch, a4);
1476 __ Dsubu(inline_site, ra, scratch);
1477 // Get the map location in scratch and patch it.
1478 __ GetRelocatedValue(inline_site, scratch, v1); // v1 used as scratch.
1479 __ sd(map, FieldMemOperand(scratch, Cell::kValueOffset));
1484 __ ld(scratch, FieldMemOperand(map, Map::kPrototypeOffset));
1486 // We don't need map any more. Use it as a scratch register.
1493 __ Branch(&is_instance, eq, scratch, Operand(prototype));
1494 __ Branch(&is_not_instance, eq, scratch, Operand(scratch2));
1495 __ ld(scratch, FieldMemOperand(scratch, HeapObject::kMapOffset));
1496 __ ld(scratch, FieldMemOperand(scratch, Map::kPrototypeOffset));
1508 // Get the boolean result location in scratch and patch it.
1509 __ PatchRelocatedValue(inline_site, scratch, v0);
1526 // Get the boolean result location in scratch and patch it.
1527 __ PatchRelocatedValue(inline_site, scratch, v0);
1541 __ GetObjectType(function, scratch2, scratch);
1542 __ Branch(&slow, ne, scratch, Operand(JS_FUNCTION_TYPE));
1547 scratch,
1560 __ IsObjectJSStringType(object, scratch, &slow);
1841 // a5 = temporary scratch (a.o., for address calculation)
1862 // a5 = scratch
3077 Register scratch,
3081 __ And(scratch, dest, Operand(kPointerAlignmentMask));
3084 scratch,
3103 __ lbu(scratch, MemOperand(src));
3105 __ sb(scratch, MemOperand(dest));
3190 // a4 is used as a scratch register and can be overwritten in either case.
4295 regs_.scratch1(), // Scratch.
4301 regs_.scratch1(), // Scratch.
4313 regs_.scratch1(), // Scratch.
4314 regs_.object(), // Scratch.
4315 regs_.address(), // Scratch.
4833 Register scratch = call_data;
4835 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
4838 __ Push(scratch, scratch);
4839 __ li(scratch,
4842 __ Push(scratch, holder);
4845 __ mov(scratch, sp);
4854 DCHECK(!api_function_address.is(a0) && !scratch.is(a0));
4859 __ sd(scratch, MemOperand(a0, 0 * kPointerSize));
4861 __ Daddu(at, scratch, Operand((FCA::kArgsLength - 1 + argc) * kPointerSize));