Lines Matching refs:__

41 #define __ codegen->GetAssembler()->  macro
59 __ mov(trg_reg_lo, ShifterOperand(res_reg_lo)); in MoveFromReturnRegister()
60 __ mov(trg_reg_hi, ShifterOperand(res_reg_hi)); in MoveFromReturnRegister()
65 __ mov(trg_reg_hi, ShifterOperand(res_reg_hi)); in MoveFromReturnRegister()
66 __ mov(trg_reg_lo, ShifterOperand(res_reg_lo)); in MoveFromReturnRegister()
72 __ mov(trg_reg, ShifterOperand(res_reg)); in MoveFromReturnRegister()
97 __ Bind(GetEntryLabel()); in EmitNativeCode()
120 __ b(GetExitLabel()); in EmitNativeCode()
130 #undef __
138 #define __ assembler-> macro
160 __ vmovrrd(output.AsRegisterPairLow<Register>(), in MoveFPToInt()
164 __ vmovrs(output.AsRegister<Register>(), input.AsFpuRegister<SRegister>()); in MoveFPToInt()
172 __ vmovdrr(FromLowSToD(output.AsFpuRegisterPairLow<SRegister>()), in MoveIntToFP()
176 __ vmovsr(output.AsFpuRegister<SRegister>(), input.AsRegister<Register>()); in MoveIntToFP()
229 __ vabsd(FromLowSToD(out.AsFpuRegisterPairLow<SRegister>()), in MathAbsFP()
232 __ vabss(out.AsFpuRegister<SRegister>(), in.AsFpuRegister<SRegister>()); in MathAbsFP()
278 __ Asr(mask, in_reg_hi, 31); in GenAbsInteger()
279 __ adds(out_reg_lo, in_reg_lo, ShifterOperand(mask)); in GenAbsInteger()
280 __ adc(out_reg_hi, in_reg_hi, ShifterOperand(mask)); in GenAbsInteger()
281 __ eor(out_reg_lo, mask, ShifterOperand(out_reg_lo)); in GenAbsInteger()
282 __ eor(out_reg_hi, mask, ShifterOperand(out_reg_hi)); in GenAbsInteger()
287 __ Asr(mask, in_reg, 31); in GenAbsInteger()
288 __ add(out_reg, in_reg, ShifterOperand(mask)); in GenAbsInteger()
289 __ eor(out_reg, mask, ShifterOperand(out_reg)); in GenAbsInteger()
317 __ cmp(op1, ShifterOperand(op2)); in GenMinMax()
319 __ it((is_min) ? Condition::LT : Condition::GT, kItElse); in GenMinMax()
320 __ mov(out, ShifterOperand(op1), is_min ? Condition::LT : Condition::GT); in GenMinMax()
321 __ mov(out, ShifterOperand(op2), is_min ? Condition::GE : Condition::LE); in GenMinMax()
356 __ vsqrtd(FromLowSToD(locations->Out().AsFpuRegisterPairLow<SRegister>()), in VisitMathSqrt()
367 __ ldrsb(invoke->GetLocations()->Out().AsRegister<Register>(), in VisitMemoryPeekByte()
378 __ ldr(invoke->GetLocations()->Out().AsRegister<Register>(), in VisitMemoryPeekIntNative()
395 __ ldr(hi, Address(addr, 4)); in VisitMemoryPeekLongNative()
396 __ ldr(lo, Address(addr, 0)); in VisitMemoryPeekLongNative()
398 __ ldr(lo, Address(addr, 0)); in VisitMemoryPeekLongNative()
399 __ ldr(hi, Address(addr, 4)); in VisitMemoryPeekLongNative()
410 __ ldrsh(invoke->GetLocations()->Out().AsRegister<Register>(), in VisitMemoryPeekShortNative()
428 __ strb(invoke->GetLocations()->InAt(1).AsRegister<Register>(), in VisitMemoryPokeByte()
438 __ str(invoke->GetLocations()->InAt(1).AsRegister<Register>(), in VisitMemoryPokeIntNative()
452 __ str(invoke->GetLocations()->InAt(1).AsRegisterPairLow<Register>(), Address(addr, 0)); in VisitMemoryPokeLongNative()
453 __ str(invoke->GetLocations()->InAt(1).AsRegisterPairHigh<Register>(), Address(addr, 4)); in VisitMemoryPokeLongNative()
462 __ strh(invoke->GetLocations()->InAt(1).AsRegister<Register>(), in VisitMemoryPokeShortNative()
475 __ LoadFromOffset(kLoadWord, in VisitThreadCurrentThread()
495 __ add(IP, base, ShifterOperand(offset)); in GenUnsafeGet()
498 __ ldrexd(trg_lo, trg_hi, IP); in GenUnsafeGet()
500 __ ldrd(trg_lo, Address(IP)); in GenUnsafeGet()
504 __ ldr(trg, Address(base, offset)); in GenUnsafeGet()
508 __ dmb(ISH); in GenUnsafeGet()
626 __ dmb(ISH); in GenUnsafePut()
637 __ add(IP, base, ShifterOperand(offset)); in GenUnsafePut()
639 __ Bind(&loop_head); in GenUnsafePut()
640 __ ldrexd(temp_lo, temp_hi, IP); in GenUnsafePut()
641 __ strexd(temp_lo, value_lo, value_hi, IP); in GenUnsafePut()
642 __ cmp(temp_lo, ShifterOperand(0)); in GenUnsafePut()
643 __ b(&loop_head, NE); in GenUnsafePut()
645 __ add(IP, base, ShifterOperand(offset)); in GenUnsafePut()
646 __ strd(value_lo, Address(IP)); in GenUnsafePut()
650 __ str(value, Address(base, offset)); in GenUnsafePut()
654 __ dmb(ISH); in GenUnsafePut()
732 __ dmb(ISH); in GenCas()
734 __ add(tmp_ptr, base, ShifterOperand(offset)); in GenCas()
742 __ Bind(&loop_head); in GenCas()
744 __ ldrex(tmp_lo, tmp_ptr); in GenCas()
746 __ subs(tmp_lo, tmp_lo, ShifterOperand(expected_lo)); in GenCas()
748 __ it(EQ, ItState::kItT); in GenCas()
749 __ strex(tmp_lo, value_lo, tmp_ptr, EQ); in GenCas()
750 __ cmp(tmp_lo, ShifterOperand(1), EQ); in GenCas()
752 __ b(&loop_head, EQ); in GenCas()
754 __ dmb(ISH); in GenCas()
756 __ rsbs(out, tmp_lo, ShifterOperand(1)); in GenCas()
757 __ it(CC); in GenCas()
758 __ mov(out, ShifterOperand(0), CC); in GenCas()
810 __ ldr(temp, Address(obj, count_offset.Int32Value())); // temp = str.length. in VisitStringCharAt()
812 __ cmp(idx, ShifterOperand(temp)); in VisitStringCharAt()
813 __ b(slow_path->GetEntryLabel(), CS); in VisitStringCharAt()
815 __ add(array_temp, obj, ShifterOperand(value_offset.Int32Value())); // array_temp := str.value. in VisitStringCharAt()
818 __ ldrh(out, Address(array_temp, idx, LSL, 1)); // out := array_temp[idx]. in VisitStringCharAt()
820 __ Bind(slow_path->GetExitLabel()); in VisitStringCharAt()
842 __ cmp(argument, ShifterOperand(0)); in VisitStringCompareTo()
845 __ b(slow_path->GetEntryLabel(), EQ); in VisitStringCompareTo()
847 __ LoadFromOffset( in VisitStringCompareTo()
849 __ blx(LR); in VisitStringCompareTo()
850 __ Bind(slow_path->GetExitLabel()); in VisitStringCompareTo()
874 __ b(slow_path->GetEntryLabel()); in GenerateVisitStringIndexOf()
875 __ Bind(slow_path->GetExitLabel()); in GenerateVisitStringIndexOf()
880 __ LoadImmediate(tmp_reg, std::numeric_limits<uint16_t>::max()); in GenerateVisitStringIndexOf()
881 __ cmp(char_reg, ShifterOperand(tmp_reg)); in GenerateVisitStringIndexOf()
884 __ b(slow_path->GetEntryLabel(), HI); in GenerateVisitStringIndexOf()
890 __ LoadImmediate(tmp_reg, 0); in GenerateVisitStringIndexOf()
893 __ LoadFromOffset(kLoadWord, LR, TR, in GenerateVisitStringIndexOf()
895 __ blx(LR); in GenerateVisitStringIndexOf()
898 __ Bind(slow_path->GetExitLabel()); in GenerateVisitStringIndexOf()
958 __ cmp(byte_array, ShifterOperand(0)); in VisitStringNewStringFromBytes()
961 __ b(slow_path->GetEntryLabel(), EQ); in VisitStringNewStringFromBytes()
963 __ LoadFromOffset( in VisitStringNewStringFromBytes()
966 __ blx(LR); in VisitStringNewStringFromBytes()
967 __ Bind(slow_path->GetExitLabel()); in VisitStringNewStringFromBytes()
984 __ LoadFromOffset( in VisitStringNewStringFromChars()
987 __ blx(LR); in VisitStringNewStringFromChars()
1004 __ cmp(string_to_copy, ShifterOperand(0)); in VisitStringNewStringFromString()
1007 __ b(slow_path->GetEntryLabel(), EQ); in VisitStringNewStringFromString()
1009 __ LoadFromOffset(kLoadWord, in VisitStringNewStringFromString()
1012 __ blx(LR); in VisitStringNewStringFromString()
1013 __ Bind(slow_path->GetExitLabel()); in VisitStringNewStringFromString()