Home | History | Annotate | Download | only in arm

Lines Matching refs:scratch

405 Register LCodeGen::EmitLoadRegister(LOperand* op, Register scratch) {
415 __ mov(scratch, Operand(static_cast<int32_t>(literal->Number())));
420 __ Move(scratch, literal);
422 return scratch;
424 __ ldr(scratch, ToMemOperand(op));
425 return scratch;
428 return scratch;
830 Register scratch = scratch0();
835 __ mov(scratch, Operand::Zero(), LeaveCC, NegateCondition(condition));
836 __ mov(scratch, Operand(1), LeaveCC, condition);
837 __ push(scratch);
841 __ mov(scratch, Operand(count));
842 __ ldr(r1, MemOperand(scratch));
845 __ str(r1, MemOperand(scratch));
850 __ pop(scratch);
860 __ cmp(scratch, Operand::Zero());
1234 Register scratch = scratch0();
1235 ASSERT(!scratch.is(left_reg));
1236 ASSERT(!scratch.is(right_reg));
1237 ASSERT(!scratch.is(result_reg));
1273 __ vmov(scratch, double_scratch0().low());
1274 __ sub(result_reg, left_reg, scratch, SetCC);
1675 Register scratch = scratch0();
1676 // scratch:result = left * right.
1679 __ smull(result, scratch, result, right);
1681 __ smull(result, scratch, left, right);
1683 __ cmp(scratch, Operand(result, ASR, 31));
1749 Register scratch = scratch0();
1752 __ and_(scratch, ToRegister(right_op), Operand(0x1F));
1755 __ mov(result, Operand(left, ROR, scratch));
1758 __ mov(result, Operand(left, ASR, scratch));
1762 __ mov(result, Operand(left, LSR, scratch), SetCC);
1765 __ mov(result, Operand(left, LSR, scratch));
1769 __ mov(result, Operand(left, LSL, scratch));
1913 Register scratch = ToRegister(instr->temp());
1918 ASSERT(!scratch.is(scratch0()));
1919 ASSERT(!scratch.is(object));
1923 __ CompareObjectType(object, scratch, scratch, JS_DATE_TYPE);
1931 __ mov(scratch, Operand(stamp));
1932 __ ldr(scratch, MemOperand(scratch));
1934 __ cmp(scratch, scratch0());
1941 __ PrepareCallCFunction(2, scratch);
1960 Register scratch = scratch0();
1961 ASSERT(!scratch.is(string));
1962 ASSERT(!scratch.is(ToRegister(index)));
1964 __ add(scratch, string, Operand(ToRegister(index)));
1967 __ add(scratch, string, Operand(ToRegister(index), LSL, 1));
1969 scratch, SeqString::kHeaderSize);
1979 Register scratch = scratch0();
1980 __ ldr(scratch, FieldMemOperand(string, HeapObject::kMapOffset));
1981 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
1983 __ and_(scratch, scratch,
1987 __ cmp(scratch, Operand(encoding == String::ONE_BYTE_ENCODING
2444 Register scratch = scratch0();
2445 __ VmovHigh(scratch, input_reg);
2446 __ cmp(scratch, Operand(kHoleNanUpper32));
2454 Register scratch = ToRegister(instr->temp());
2460 __ VmovHigh(scratch, value);
2461 __ cmp(scratch, Operand(0x80000000));
2465 scratch,
2469 __ ldr(scratch, FieldMemOperand(value, HeapNumber::kExponentOffset));
2471 __ cmp(scratch, Operand(0x80000000));
2621 Register scratch = scratch0();
2628 __ CompareObjectType(input, scratch, scratch, TestType(instr->hydrogen()));
2647 Register scratch = scratch0();
2649 __ ldr(scratch,
2651 __ tst(scratch, Operand(String::kContainsCachedArrayIndexMask));
3007 Register scratch = scratch0();
3013 __ ldr(scratch, target);
3015 __ cmp(scratch, ip);
3031 scratch,
3083 Register scratch = scratch0();
3089 __ CompareObjectType(function, result, scratch, JS_FUNCTION_TYPE);
3094 __ ldrb(scratch, FieldMemOperand(result, Map::kBitFieldOffset));
3095 __ tst(scratch, Operand(1 << Map::kHasNonInstancePrototype));
3109 __ CompareObjectType(result, scratch, scratch, MAP_TYPE);
3264 Register scratch = scratch0();
3276 __ add(scratch, elements, Operand(base_offset));
3282 __ add(scratch, scratch, Operand(key, LSL, shift_size));
3285 __ vldr(result, scratch, 0);
3288 __ ldr(scratch, MemOperand(scratch, sizeof(kHoleNanLower32)));
3289 __ cmp(scratch, Operand(kHoleNanUpper32));
3298 Register scratch = scratch0();
3299 Register store_base = scratch;
3313 __ add(scratch, elements, Operand::PointerOffsetFromSmiKey(key));
3315 __ add(scratch, elements, Operand(key, LSL, kPointerSizeLog2));
3326 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
3327 __ cmp(result, scratch);
3387 Register scratch = scratch0();
3395 __ ldr(scratch, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
3396 __ ldr(result, MemOperand(scratch, StandardFrameConstants::kContextOffset));
3402 __ mov(result, scratch, LeaveCC, eq);
3433 Register scratch = scratch0();
3443 __ ldr(scratch,
3445 __ ldr(scratch,
3446 FieldMemOperand(scratch, SharedFunctionInfo::kCompilerHintsOffset));
3448 __ tst(scratch, Operand(mask));
3452 __ tst(scratch, Operand(1 << (SharedFunctionInfo::kNative + kSmiTagSize)));
3457 __ LoadRoot(scratch, Heap::kNullValueRootIndex);
3458 __ cmp(receiver, scratch);
3460 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
3461 __ cmp(receiver, scratch);
3467 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE);
3495 Register scratch = scratch0();
3520 __ ldr(scratch, MemOperand(elements, length, LSL, 2));
3521 __ push(scratch);
3628 Register scratch = scratch0();
3631 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
3633 __ cmp(scratch, Operand(ip));
3638 scratch = no_reg;
3653 // many scratch registers.
4058 Register scratch = scratch0();
4086 __ mov(scratch, Operand(transition));
4087 __ str(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
4092 scratch,
4109 scratch,
4117 __ ldr(scratch, FieldMemOperand(object, JSObject::kPropertiesOffset));
4118 MemOperand operand = FieldMemOperand(scratch, offset);
4122 // object is used as a scratch register.
4123 __ RecordWriteField(scratch,
4263 Register scratch = scratch0();
4276 __ add(scratch, elements,
4281 __ add(scratch, elements, Operand(base_offset));
4282 __ add(scratch, scratch,
4294 __ vstr(double_scratch, scratch, 0);
4296 __ vstr(value, scratch, 0);
4306 Register scratch = scratch0();
4307 Register store_base = scratch;
4322 __ add(scratch, elements, Operand::PointerOffsetFromSmiKey(key));
4324 __ add(scratch, elements, Operand(key, LSL, kPointerSizeLog2));
4374 Register scratch = scratch0();
4382 __ ldr(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4383 __ cmp(scratch, Operand(from_map));
4393 scratch,
4461 Register scratch = scratch0();
4474 __ mov(scratch, Operand(Smi::FromInt(const_index)));
4475 __ push(scratch);
4546 Register scratch = scratch0();
4547 __ ldr(scratch, ToMemOperand(input));
4548 __ vmov(single_scratch, scratch);
4701 Register scratch = scratch0();
4708 __ LoadRoot(scratch, Heap::kHeapNumberMapRootIndex);
4710 __ AllocateHeapNumber(reg, temp1, temp2, scratch, deferred->entry(),
4783 Register scratch = scratch0();
4789 __ UntagAndJumpIfSmi(scratch, input_reg, &load_smi);
4791 __ ldr(scratch, FieldMemOperand(input_reg, HeapObject::kMapOffset));
4793 __ cmp(scratch, Operand(ip));
4802 __ VmovLow(scratch, result_reg);
4803 __ cmp(scratch, Operand::Zero());
4805 __ VmovHigh(scratch, result_reg);
4806 __ cmp(scratch, Operand(HeapNumber::kSignMask));
4816 __ LoadRoot(scratch, Heap::kNanValueRootIndex);
4817 __ vldr(result_reg, scratch, HeapNumber::kValueOffset - kHeapObjectTag);
4821 __ SmiUntag(scratch, input_reg);
4826 // scratch: untagged value of input_reg
4827 __ vmov(flt_scratch, scratch);
5033 Register scratch = scratch0();
5035 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
5036 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
5043 __ cmp(scratch, Operand(first));
5052 __ cmp(scratch, Operand(last));
5063 __ tst(scratch, Operand(mask));
5066 __ and_(scratch, scratch, Operand(mask));
5067 __ cmp(scratch, Operand(tag));
5181 Register scratch = scratch0();
5191 __ ldr(scratch, FieldMemOperand(input_reg, HeapObject::kMapOffset));
5192 __ cmp(scratch, Operand(factory()->heap_number_map()));
5253 Register scratch = ToRegister(instr->temp1());
5273 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5281 scratch,
5292 __ mov(scratch, Operand(size));
5294 scratch = ToRegister(instr->size());
5296 __ sub(scratch, scratch, Operand(kPointerSize));
5301 __ str(scratch2, MemOperand(result, scratch));
5302 __ sub(scratch, scratch, Operand(kPointerSize));
5303 __ cmp(scratch, Operand(0));
5452 Register scratch = scratch0();
5456 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
5457 __ CompareRoot(scratch, Heap::kHeapNumberMapRootIndex);
5462 __ CompareObjectType(input, scratch, no_reg, FIRST_NONSTRING_TYPE);
5464 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
5465 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
5470 __ CompareObjectType(input, scratch, no_reg, SYMBOL_TYPE);
5489 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
5490 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
5491 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
5496 Register type_reg = scratch;
5498 __ CompareObjectType(input, scratch, type_reg, JS_FUNCTION_TYPE);
5504 Register map = scratch;
5516 __ ldrb(scratch, FieldMemOperand(map, Map::kBitFieldOffset));
5517 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
5793 Register scratch = scratch0();
5808 __ add(scratch, object, Operand::PointerOffsetFromSmiKey(index));
5809 __ ldr(result, FieldMemOperand(scratch, JSObject::kHeaderSize));
5817 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5818 __ ldr(result, FieldMemOperand(scratch,