Lines Matching refs:source

297       Location source = instruction_->IsLoadClass() ? out : locations->InAt(0);  in EmitNativeCode()  local
298 x86_codegen->Move32(Location::RegisterLocation(calling_convention.GetRegisterAt(0)), source); in EmitNativeCode()
1330 void CodeGeneratorX86::Move32(Location destination, Location source) { in Move32() argument
1331 if (source.Equals(destination)) { in Move32()
1335 if (source.IsRegister()) { in Move32()
1336 __ movl(destination.AsRegister<Register>(), source.AsRegister<Register>()); in Move32()
1337 } else if (source.IsFpuRegister()) { in Move32()
1338 __ movd(destination.AsRegister<Register>(), source.AsFpuRegister<XmmRegister>()); in Move32()
1340 DCHECK(source.IsStackSlot()); in Move32()
1341 __ movl(destination.AsRegister<Register>(), Address(ESP, source.GetStackIndex())); in Move32()
1344 if (source.IsRegister()) { in Move32()
1345 __ movd(destination.AsFpuRegister<XmmRegister>(), source.AsRegister<Register>()); in Move32()
1346 } else if (source.IsFpuRegister()) { in Move32()
1347 __ movaps(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in Move32()
1349 DCHECK(source.IsStackSlot()); in Move32()
1350 __ movss(destination.AsFpuRegister<XmmRegister>(), Address(ESP, source.GetStackIndex())); in Move32()
1354 if (source.IsRegister()) { in Move32()
1355 __ movl(Address(ESP, destination.GetStackIndex()), source.AsRegister<Register>()); in Move32()
1356 } else if (source.IsFpuRegister()) { in Move32()
1357 __ movss(Address(ESP, destination.GetStackIndex()), source.AsFpuRegister<XmmRegister>()); in Move32()
1358 } else if (source.IsConstant()) { in Move32()
1359 HConstant* constant = source.GetConstant(); in Move32()
1363 DCHECK(source.IsStackSlot()); in Move32()
1364 __ pushl(Address(ESP, source.GetStackIndex())); in Move32()
1370 void CodeGeneratorX86::Move64(Location destination, Location source) { in Move64() argument
1371 if (source.Equals(destination)) { in Move64()
1375 if (source.IsRegisterPair()) { in Move64()
1377 Location::RegisterLocation(source.AsRegisterPairHigh<Register>()), in Move64()
1380 Location::RegisterLocation(source.AsRegisterPairLow<Register>()), in Move64()
1383 } else if (source.IsFpuRegister()) { in Move64()
1384 XmmRegister src_reg = source.AsFpuRegister<XmmRegister>(); in Move64()
1390 DCHECK(source.IsDoubleStackSlot()); in Move64()
1391 __ movl(destination.AsRegisterPairLow<Register>(), Address(ESP, source.GetStackIndex())); in Move64()
1393 Address(ESP, source.GetHighStackIndex(kX86WordSize))); in Move64()
1396 if (source.IsFpuRegister()) { in Move64()
1397 __ movaps(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in Move64()
1398 } else if (source.IsDoubleStackSlot()) { in Move64()
1399 __ movsd(destination.AsFpuRegister<XmmRegister>(), Address(ESP, source.GetStackIndex())); in Move64()
1400 } else if (source.IsRegisterPair()) { in Move64()
1403 __ pushl(source.AsRegisterPairHigh<Register>()); in Move64()
1405 __ pushl(source.AsRegisterPairLow<Register>()); in Move64()
1415 if (source.IsRegisterPair()) { in Move64()
1417 __ movl(Address(ESP, destination.GetStackIndex()), source.AsRegisterPairLow<Register>()); in Move64()
1419 source.AsRegisterPairHigh<Register>()); in Move64()
1420 } else if (source.IsFpuRegister()) { in Move64()
1421 __ movsd(Address(ESP, destination.GetStackIndex()), source.AsFpuRegister<XmmRegister>()); in Move64()
1422 } else if (source.IsConstant()) { in Move64()
1423 HConstant* constant = source.GetConstant(); in Move64()
1430 DCHECK(source.IsDoubleStackSlot()) << source; in Move64()
1432 Location::StackSlot(source.GetStackIndex()), in Move64()
1435 Location::StackSlot(source.GetHighStackIndex(kX86WordSize)), in Move64()
3552 void InstructionCodeGeneratorX86::PushOntoFPStack(Location source, in PushOntoFPStack() argument
3557 if (source.IsStackSlot()) { in PushOntoFPStack()
3560 __ flds(Address(ESP, source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3562 __ filds(Address(ESP, source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3564 } else if (source.IsDoubleStackSlot()) { in PushOntoFPStack()
3567 __ fldl(Address(ESP, source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3569 __ fildl(Address(ESP, source.GetStackIndex() + stack_adjustment)); in PushOntoFPStack()
3575 codegen_->Move32(stack_temp, source); in PushOntoFPStack()
3583 codegen_->Move64(stack_temp, source); in PushOntoFPStack()
6166 Register source = register_value; in VisitArraySet() local
6170 source = temp; in VisitArraySet()
6173 __ movl(address, source); in VisitArraySet()
6451 Location source = move->GetSource(); in EmitMove() local
6454 if (source.IsRegister()) { in EmitMove()
6456 __ movl(destination.AsRegister<Register>(), source.AsRegister<Register>()); in EmitMove()
6458 __ movd(destination.AsFpuRegister<XmmRegister>(), source.AsRegister<Register>()); in EmitMove()
6461 __ movl(Address(ESP, destination.GetStackIndex()), source.AsRegister<Register>()); in EmitMove()
6463 } else if (source.IsRegisterPair()) { in EmitMove()
6465 __ movl(destination.AsRegisterPairLow<Register>(), source.AsRegisterPairLow<Register>()); in EmitMove()
6466 DCHECK_NE(destination.AsRegisterPairLow<Register>(), source.AsRegisterPairHigh<Register>()); in EmitMove()
6467 __ movl(destination.AsRegisterPairHigh<Register>(), source.AsRegisterPairHigh<Register>()); in EmitMove()
6471 __ pushl(source.AsRegisterPairHigh<Register>()); in EmitMove()
6473 __ pushl(source.AsRegisterPairLow<Register>()); in EmitMove()
6481 __ movl(Address(ESP, destination.GetStackIndex()), source.AsRegisterPairLow<Register>()); in EmitMove()
6483 source.AsRegisterPairHigh<Register>()); in EmitMove()
6485 } else if (source.IsFpuRegister()) { in EmitMove()
6487 __ movd(destination.AsRegister<Register>(), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6489 __ movaps(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6495 __ movsd(Address(ESP, 0), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6502 __ movss(Address(ESP, destination.GetStackIndex()), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6504 __ movsd(Address(ESP, destination.GetStackIndex()), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6507 __ movups(Address(ESP, destination.GetStackIndex()), source.AsFpuRegister<XmmRegister>()); in EmitMove()
6509 } else if (source.IsStackSlot()) { in EmitMove()
6511 __ movl(destination.AsRegister<Register>(), Address(ESP, source.GetStackIndex())); in EmitMove()
6513 __ movss(destination.AsFpuRegister<XmmRegister>(), Address(ESP, source.GetStackIndex())); in EmitMove()
6516 MoveMemoryToMemory(destination.GetStackIndex(), source.GetStackIndex(), 1); in EmitMove()
6518 } else if (source.IsDoubleStackSlot()) { in EmitMove()
6520 __ movl(destination.AsRegisterPairLow<Register>(), Address(ESP, source.GetStackIndex())); in EmitMove()
6522 Address(ESP, source.GetHighStackIndex(kX86WordSize))); in EmitMove()
6524 __ movsd(destination.AsFpuRegister<XmmRegister>(), Address(ESP, source.GetStackIndex())); in EmitMove()
6527 MoveMemoryToMemory(destination.GetStackIndex(), source.GetStackIndex(), 2); in EmitMove()
6529 } else if (source.IsSIMDStackSlot()) { in EmitMove()
6531 __ movups(destination.AsFpuRegister<XmmRegister>(), Address(ESP, source.GetStackIndex())); in EmitMove()
6534 MoveMemoryToMemory(destination.GetStackIndex(), source.GetStackIndex(), 4); in EmitMove()
6536 } else if (source.IsConstant()) { in EmitMove()
6537 HConstant* constant = source.GetConstant(); in EmitMove()
6611 LOG(FATAL) << "Unimplemented move: " << destination << " <- " << source; in EmitMove()
6669 Location source = move->GetSource(); in EmitSwap() local
6672 if (source.IsRegister() && destination.IsRegister()) { in EmitSwap()
6674 DCHECK_NE(destination.AsRegister<Register>(), source.AsRegister<Register>()); in EmitSwap()
6675 __ xorl(destination.AsRegister<Register>(), source.AsRegister<Register>()); in EmitSwap()
6676 __ xorl(source.AsRegister<Register>(), destination.AsRegister<Register>()); in EmitSwap()
6677 __ xorl(destination.AsRegister<Register>(), source.AsRegister<Register>()); in EmitSwap()
6678 } else if (source.IsRegister() && destination.IsStackSlot()) { in EmitSwap()
6679 Exchange(source.AsRegister<Register>(), destination.GetStackIndex()); in EmitSwap()
6680 } else if (source.IsStackSlot() && destination.IsRegister()) { in EmitSwap()
6681 Exchange(destination.AsRegister<Register>(), source.GetStackIndex()); in EmitSwap()
6682 } else if (source.IsStackSlot() && destination.IsStackSlot()) { in EmitSwap()
6683 ExchangeMemory(destination.GetStackIndex(), source.GetStackIndex(), 1); in EmitSwap()
6684 } else if (source.IsFpuRegister() && destination.IsFpuRegister()) { in EmitSwap()
6686 DCHECK_NE(source.reg(), destination.reg()); in EmitSwap()
6687 __ xorpd(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in EmitSwap()
6688 __ xorpd(source.AsFpuRegister<XmmRegister>(), destination.AsFpuRegister<XmmRegister>()); in EmitSwap()
6689 __ xorpd(destination.AsFpuRegister<XmmRegister>(), source.AsFpuRegister<XmmRegister>()); in EmitSwap()
6690 } else if (source.IsFpuRegister() && destination.IsStackSlot()) { in EmitSwap()
6691 Exchange32(source.AsFpuRegister<XmmRegister>(), destination.GetStackIndex()); in EmitSwap()
6692 } else if (destination.IsFpuRegister() && source.IsStackSlot()) { in EmitSwap()
6693 Exchange32(destination.AsFpuRegister<XmmRegister>(), source.GetStackIndex()); in EmitSwap()
6694 } else if (source.IsFpuRegister() && destination.IsDoubleStackSlot()) { in EmitSwap()
6696 XmmRegister reg = source.AsFpuRegister<XmmRegister>(); in EmitSwap()
6706 } else if (destination.IsFpuRegister() && source.IsDoubleStackSlot()) { in EmitSwap()
6709 Address stack(ESP, source.GetStackIndex()); in EmitSwap()
6718 } else if (destination.IsDoubleStackSlot() && source.IsDoubleStackSlot()) { in EmitSwap()
6719 ExchangeMemory(destination.GetStackIndex(), source.GetStackIndex(), 2); in EmitSwap()
6720 } else if (source.IsSIMDStackSlot() && destination.IsSIMDStackSlot()) { in EmitSwap()
6721 ExchangeMemory(destination.GetStackIndex(), source.GetStackIndex(), 4); in EmitSwap()
6722 } else if (source.IsFpuRegister() && destination.IsSIMDStackSlot()) { in EmitSwap()
6723 Exchange128(source.AsFpuRegister<XmmRegister>(), destination.GetStackIndex()); in EmitSwap()
6724 } else if (destination.IsFpuRegister() && source.IsSIMDStackSlot()) { in EmitSwap()
6725 Exchange128(destination.AsFpuRegister<XmmRegister>(), source.GetStackIndex()); in EmitSwap()
6727 LOG(FATAL) << "Unimplemented: source: " << source << ", destination: " << destination; in EmitSwap()