Lines Matching refs:source

279       Location source = instruction_->IsLoadClass() ? out : locations->InAt(0);  in EmitNativeCode()  local
280 x86_64_codegen->Move(Location::RegisterLocation(RAX), source); in EmitNativeCode()
1540 void CodeGeneratorX86_64::Move(Location destination, Location source) { in Move() argument
1541 if (source.Equals(destination)) { in Move()
1546 if (source.IsRegister()) { in Move()
1547 __ movq(dest, source.AsRegister<CpuRegister>()); in Move()
1548 } else if (source.IsFpuRegister()) { in Move()
1549 __ movd(dest, source.AsFpuRegister<XmmRegister>()); in Move()
1550 } else if (source.IsStackSlot()) { in Move()
1551 __ movl(dest, Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
1552 } else if (source.IsConstant()) { in Move()
1553 HConstant* constant = source.GetConstant(); in Move()
1560 DCHECK(source.IsDoubleStackSlot()); in Move()
1561 __ movq(dest, Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
1565 if (source.IsRegister()) { in Move()
1566 __ movd(dest, source.AsRegister<CpuRegister>()); in Move()
1567 } else if (source.IsFpuRegister()) { in Move()
1568 __ movaps(dest, source.AsFpuRegister<XmmRegister>()); in Move()
1569 } else if (source.IsConstant()) { in Move()
1570 HConstant* constant = source.GetConstant(); in Move()
1577 } else if (source.IsStackSlot()) { in Move()
1578 __ movss(dest, Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
1580 DCHECK(source.IsDoubleStackSlot()); in Move()
1581 __ movsd(dest, Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
1584 if (source.IsRegister()) { in Move()
1586 source.AsRegister<CpuRegister>()); in Move()
1587 } else if (source.IsFpuRegister()) { in Move()
1589 source.AsFpuRegister<XmmRegister>()); in Move()
1590 } else if (source.IsConstant()) { in Move()
1591 HConstant* constant = source.GetConstant(); in Move()
1595 DCHECK(source.IsStackSlot()) << source; in Move()
1596 __ movl(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
1601 if (source.IsRegister()) { in Move()
1603 source.AsRegister<CpuRegister>()); in Move()
1604 } else if (source.IsFpuRegister()) { in Move()
1606 source.AsFpuRegister<XmmRegister>()); in Move()
1607 } else if (source.IsConstant()) { in Move()
1608 HConstant* constant = source.GetConstant(); in Move()
1613 DCHECK(source.IsDoubleStackSlot()); in Move()
1614 __ movq(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex())); in Move()
3658 void InstructionCodeGeneratorX86_64::PushOntoFPStack(Location source, uint32_t temp_offset, in PushOntoFPStack() argument
3660 if (source.IsStackSlot()) { in PushOntoFPStack()
3662 __ flds(Address(CpuRegister(RSP), source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3663 } else if (source.IsDoubleStackSlot()) { in PushOntoFPStack()
3665 __ fldl(Address(CpuRegister(RSP), source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3670 codegen_->Move(stack_temp, source); in PushOntoFPStack()
3674 codegen_->Move(stack_temp, source); in PushOntoFPStack()
5512 Location source = value; in VisitArraySet() local
5516 source = temp_loc; in VisitArraySet()
5519 __ movl(address, source.AsRegister<CpuRegister>()); in VisitArraySet()
5809 Location source = move->GetSource(); in EmitMove() local
5812 if (source.IsRegister()) { in EmitMove()
5814 __ movq(destination.AsRegister<CpuRegister>(), source.AsRegister<CpuRegister>()); in EmitMove()
5817 source.AsRegister<CpuRegister>()); in EmitMove()
5821 source.AsRegister<CpuRegister>()); in EmitMove()
5823 } else if (source.IsStackSlot()) { in EmitMove()
5826 Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5829 Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5832 __ movl(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5835 } else if (source.IsDoubleStackSlot()) { in EmitMove()
5838 Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5841 Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5844 __ movq(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5847 } else if (source.IsSIMDStackSlot()) { in EmitMove()
5850 Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5854 __ movq(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex())); in EmitMove()
5856 __ movq(CpuRegister(TMP), Address(CpuRegister(RSP), source.GetStackIndex() + high)); in EmitMove()
5859 } else if (source.IsConstant()) { in EmitMove()
5860 HConstant* constant = source.GetConstant(); in EmitMove()
5903 } else if (source.IsFpuRegister()) { in EmitMove()
5905 __ movaps(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in EmitMove()
5908 source.AsFpuRegister<XmmRegister>()); in EmitMove()
5911 source.AsFpuRegister<XmmRegister>()); in EmitMove()
5915 source.AsFpuRegister<XmmRegister>()); in EmitMove()
5994 Location source = move->GetSource(); in EmitSwap() local
5997 if (source.IsRegister() && destination.IsRegister()) { in EmitSwap()
5998 Exchange64(source.AsRegister<CpuRegister>(), destination.AsRegister<CpuRegister>()); in EmitSwap()
5999 } else if (source.IsRegister() && destination.IsStackSlot()) { in EmitSwap()
6000 Exchange32(source.AsRegister<CpuRegister>(), destination.GetStackIndex()); in EmitSwap()
6001 } else if (source.IsStackSlot() && destination.IsRegister()) { in EmitSwap()
6002 Exchange32(destination.AsRegister<CpuRegister>(), source.GetStackIndex()); in EmitSwap()
6003 } else if (source.IsStackSlot() && destination.IsStackSlot()) { in EmitSwap()
6004 ExchangeMemory32(destination.GetStackIndex(), source.GetStackIndex()); in EmitSwap()
6005 } else if (source.IsRegister() && destination.IsDoubleStackSlot()) { in EmitSwap()
6006 Exchange64(source.AsRegister<CpuRegister>(), destination.GetStackIndex()); in EmitSwap()
6007 } else if (source.IsDoubleStackSlot() && destination.IsRegister()) { in EmitSwap()
6008 Exchange64(destination.AsRegister<CpuRegister>(), source.GetStackIndex()); in EmitSwap()
6009 } else if (source.IsDoubleStackSlot() && destination.IsDoubleStackSlot()) { in EmitSwap()
6010 ExchangeMemory64(destination.GetStackIndex(), source.GetStackIndex(), 1); in EmitSwap()
6011 } else if (source.IsFpuRegister() && destination.IsFpuRegister()) { in EmitSwap()
6012 __ movd(CpuRegister(TMP), source.AsFpuRegister<XmmRegister>()); in EmitSwap()
6013 __ movaps(source.AsFpuRegister<XmmRegister>(), destination.AsFpuRegister<XmmRegister>()); in EmitSwap()
6015 } else if (source.IsFpuRegister() && destination.IsStackSlot()) { in EmitSwap()
6016 Exchange32(source.AsFpuRegister<XmmRegister>(), destination.GetStackIndex()); in EmitSwap()
6017 } else if (source.IsStackSlot() && destination.IsFpuRegister()) { in EmitSwap()
6018 Exchange32(destination.AsFpuRegister<XmmRegister>(), source.GetStackIndex()); in EmitSwap()
6019 } else if (source.IsFpuRegister() && destination.IsDoubleStackSlot()) { in EmitSwap()
6020 Exchange64(source.AsFpuRegister<XmmRegister>(), destination.GetStackIndex()); in EmitSwap()
6021 } else if (source.IsDoubleStackSlot() && destination.IsFpuRegister()) { in EmitSwap()
6022 Exchange64(destination.AsFpuRegister<XmmRegister>(), source.GetStackIndex()); in EmitSwap()
6023 } else if (source.IsSIMDStackSlot() && destination.IsSIMDStackSlot()) { in EmitSwap()
6024 ExchangeMemory64(destination.GetStackIndex(), source.GetStackIndex(), 2); in EmitSwap()
6025 } else if (source.IsFpuRegister() && destination.IsSIMDStackSlot()) { in EmitSwap()
6026 Exchange128(source.AsFpuRegister<XmmRegister>(), destination.GetStackIndex()); in EmitSwap()
6027 } else if (destination.IsFpuRegister() && source.IsSIMDStackSlot()) { in EmitSwap()
6028 Exchange128(destination.AsFpuRegister<XmmRegister>(), source.GetStackIndex()); in EmitSwap()
6030 LOG(FATAL) << "Unimplemented swap between " << source << " and " << destination; in EmitSwap()