Home | History | Annotate | Download | only in arm

Lines Matching refs:scratch

287 Register LCodeGen::EmitLoadRegister(LOperand* op, Register scratch) {
291 __ mov(scratch, ToOperand(op));
292 return scratch;
294 __ ldr(scratch, ToMemOperand(op));
295 return scratch;
298 return scratch;
863 Register scratch = scratch0();
874 ASSERT(!scratch.is(left));
875 ASSERT(!scratch.is(right));
876 ASSERT(!scratch.is(result));
898 scratch,
901 // Perform modulo operation (scratch contains right - 1).
902 __ and_(result, scratch, Operand(left));
914 __ mov(scratch, left);
918 __ cmp(scratch, Operand(right));
919 __ mov(result, scratch, LeaveCC, lt);
923 if (i < kUnfolds - 1) __ sub(scratch, scratch, right);
949 __ vmov(scratch, double_scratch.low());
952 __ sub(result, left, scratch);
956 __ sub(scratch2, left, scratch, SetCC);
983 const Register scratch = scratch0();
1032 __ TrySmiTag(left, &deoptimize, scratch);
1033 __ TrySmiTag(right, &deoptimize, scratch);
1081 Register scratch = scratch0();
1083 Register right = EmitLoadRegister(instr->InputAt(1), scratch);
1091 // scratch:left = left * right.
1092 __ smull(left, scratch, left, right);
1094 __ cmp(ip, Operand(scratch));
1153 Register scratch = scratch0();
1161 __ and_(scratch, ToRegister(right), Operand(0x1F));
1164 __ mov(result, Operand(result, ASR, scratch));
1168 __ mov(result, Operand(result, LSR, scratch), SetCC);
1171 __ mov(result, Operand(result, LSR, scratch));
1175 __ mov(result, Operand(result, LSL, scratch));
1420 Register scratch = scratch0();
1423 __ VFPCompareAndLoadFlags(reg, 0.0, scratch);
1424 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit));
1454 Register scratch = scratch0();
1455 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
1457 __ cmp(scratch, Operand(ip));
1461 __ VFPCompareAndLoadFlags(dbl_scratch, 0.0, scratch);
1462 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit));
1560 Register scratch = scratch0();
1647 Register scratch = result;
1648 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
1649 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
1650 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
1663 Register scratch = scratch0();
1687 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
1688 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
1689 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
1820 Register scratch = scratch0();
1831 __ CompareObjectType(input, scratch, scratch, TestType(instr->hydrogen()));
1852 Register scratch = scratch0();
1855 __ ldr(scratch,
1857 __ tst(scratch, Operand(String::kContainsCachedArrayIndexMask));
1866 Register scratch = scratch0();
1871 __ ldr(scratch,
1873 __ tst(scratch, Operand(String::kContainsCachedArrayIndexMask));
2227 Register scratch = scratch0();
2230 __ mov(scratch, Operand(Handle<Object>(instr->hydrogen()->cell())));
2239 FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
2246 __ str(value, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
2316 Register scratch = scratch0();
2326 __ ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
2330 __ cmp(scratch, Operand(map));
2337 __ cmp(scratch, Operand(map));
2368 Register scratch = scratch0();
2374 __ CompareObjectType(function, result, scratch, JS_FUNCTION_TYPE);
2379 __ ldrb(scratch, FieldMemOperand(result, Map::kBitFieldOffset));
2380 __ tst(scratch, Operand(1 << Map::kHasNonInstancePrototype));
2394 __ CompareObjectType(result, scratch, scratch, MAP_TYPE);
2414 Register scratch = scratch0();
2419 __ ldr(scratch, FieldMemOperand(result, HeapObject::kMapOffset));
2421 __ cmp(scratch, ip);
2424 __ cmp(scratch, ip);
2426 __ ldr(scratch, FieldMemOperand(result, HeapObject::kMapOffset));
2427 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
2428 __ sub(scratch, scratch, Operand(FIRST_EXTERNAL_ARRAY_TYPE));
2429 __ cmp(scratch, Operand(kExternalArrayTypeCount));
2467 Register scratch = scratch0();
2471 __ add(scratch, elements, Operand(key, LSL, kPointerSizeLog2));
2472 __ ldr(result, FieldMemOperand(scratch, FixedArray::kHeaderSize));
2475 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
2476 __ cmp(result, scratch);
2537 Register scratch = scratch0();
2542 __ ldr(scratch, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
2543 __ ldr(result, MemOperand(scratch, StandardFrameConstants::kContextOffset));
2549 __ mov(result, scratch, LeaveCC, eq);
2580 Register scratch = scratch0();
2588 __ LoadRoot(scratch, Heap::kNullValueRootIndex);
2589 __ cmp(receiver, scratch);
2591 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2592 __ cmp(receiver, scratch);
2598 __ CompareObjectType(receiver, scratch, scratch, FIRST_JS_OBJECT_TYPE);
2626 __ ldr(scratch, MemOperand(elements, length, LSL, 2));
2627 __ push(scratch);
2731 Register scratch = scratch0();
2734 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
2736 __ cmp(scratch, Operand(ip));
2741 scratch = no_reg;
2756 // many scratch registers.
2906 Register scratch = scratch0();
2912 __ mov(scratch, Operand(0));
2913 __ vmov(single_scratch, scratch);
2923 Register scratch = scratch0();
2928 __ PrepareCallCFunction(4, scratch);
2936 __ PrepareCallCFunction(4, scratch);
2960 __ ldr(scratch, FieldMemOperand(right_reg, HeapObject::kMapOffset));
2962 __ cmp(scratch, Operand(ip));
2965 __ add(scratch
2966 __ vldr(result_reg, scratch, 0);
2970 __ PrepareCallCFunction(4, scratch);
3110 Register scratch = scratch0();
3116 __ mov(scratch, Operand(instr->transition()));
3117 __ str(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
3125 __ RecordWrite(object, Operand(offset), value, scratch);
3128 __ ldr(scratch, FieldMemOperand(object, JSObject::kPropertiesOffset));
3129 __ str(value, FieldMemOperand(scratch, offset));
3132 // object is used as a scratch register.
3133 __ RecordWrite(scratch, Operand(offset), value, object);
3162 Register scratch = scratch0();
3172 __ add(scratch, elements, Operand(key, LSL, kPointerSizeLog2));
3173 __ str(value, FieldMemOperand(scratch, FixedArray::kHeaderSize));
3178 __ add(key, scratch, Operand(FixedArray::kHeaderSize));
3246 Register scratch = scratch0();
3291 __ ldr(scratch, FieldMemOperand(string, ConsString::kSecondOffset));
3293 __ cmp(scratch, ip);
3318 __ add(scratch,
3321 __ ldrh(result, MemOperand(scratch, index, LSL, 1));
3332 __ add(scratch,
3335 __ ldrb(result, MemOperand(scratch, index));
3345 Register scratch = scratch0();
3358 __ mov(scratch, Operand(Smi::FromInt(const_index)));
3359 __ push(scratch);
3435 Register scratch = scratch0();
3436 __ ldr(scratch, ToMemOperand(input));
3437 __ vmov(single_scratch, scratch);
3521 Register scratch = scratch0();
3528 __ LoadRoot(scratch, Heap::kHeapNumberMapRootIndex);
3529 __ AllocateHeapNumber(reg, temp1, temp2, scratch, deferred->entry());
3575 Register scratch = scratch0();
3586 __ ldr(scratch, FieldMemOperand(input_reg, HeapObject::kMapOffset));
3588 __ cmp(scratch, Operand(ip));
3794 Register scratch = scratch0();
3798 __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
3799 __ ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
3800 __ cmp(scratch, Operand(first));
3809 __ cmp(scratch, Operand(last));
3825 Register scratch = scratch0();
3829 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
3830 __ cmp(scratch, Operand(instr->hydrogen()->map()));
4056 Register scratch = scratch0();
4066 __ CompareObjectType(input, input, scratch, FIRST_NONSTRING_TYPE);
4090 __ CompareObjectType(input, input, scratch, FIRST_FUNCTION_CLASS_TYPE);
4097 __ CompareObjectType(input, input, scratch, FIRST_JS_OBJECT_TYPE);
4099 __ CompareInstanceType(input, scratch, FIRST_FUNCTION_CLASS_TYPE);