Lines Matching refs:loc
388 RegLocation Mir2Lir::ForceTemp(RegLocation loc) { in ForceTemp() argument
389 DCHECK(!loc.wide); in ForceTemp()
390 DCHECK(loc.location == kLocPhysReg); in ForceTemp()
391 DCHECK(!loc.reg.IsFloat()); in ForceTemp()
392 if (IsTemp(loc.reg)) { in ForceTemp()
393 Clobber(loc.reg); in ForceTemp()
396 OpRegCopy(temp_low, loc.reg); in ForceTemp()
397 loc.reg = temp_low; in ForceTemp()
401 loc.s_reg_low = INVALID_SREG; in ForceTemp()
402 return loc; in ForceTemp()
405 RegLocation Mir2Lir::ForceTempWide(RegLocation loc) { in ForceTempWide() argument
406 DCHECK(loc.wide); in ForceTempWide()
407 DCHECK(loc.location == kLocPhysReg); in ForceTempWide()
408 DCHECK(!loc.reg.IsFloat()); in ForceTempWide()
410 if (!loc.reg.IsPair()) { in ForceTempWide()
411 if (IsTemp(loc.reg)) { in ForceTempWide()
412 Clobber(loc.reg); in ForceTempWide()
415 OpRegCopy(temp, loc.reg); in ForceTempWide()
416 loc.reg = temp; in ForceTempWide()
419 if (IsTemp(loc.reg.GetLow())) { in ForceTempWide()
420 Clobber(loc.reg.GetLow()); in ForceTempWide()
423 OpRegCopy(temp_low, loc.reg.GetLow()); in ForceTempWide()
424 loc.reg.SetLowReg(temp_low.GetReg()); in ForceTempWide()
426 if (IsTemp(loc.reg.GetHigh())) { in ForceTempWide()
427 Clobber(loc.reg.GetHigh()); in ForceTempWide()
430 OpRegCopy(temp_high, loc.reg.GetHigh()); in ForceTempWide()
431 loc.reg.SetHighReg(temp_high.GetReg()); in ForceTempWide()
436 loc.s_reg_low = INVALID_SREG; in ForceTempWide()
437 return loc; in ForceTempWide()