Lines Matching refs:source

368 void CodeGeneratorARM::Move32(Location destination, Location source) {  in Move32()  argument
369 if (source.Equals(destination)) { in Move32()
373 if (source.IsRegister()) { in Move32()
374 __ Mov(destination.AsArm().AsCoreRegister(), source.AsArm().AsCoreRegister()); in Move32()
376 __ ldr(destination.AsArm().AsCoreRegister(), Address(SP, source.GetStackIndex())); in Move32()
380 if (source.IsRegister()) { in Move32()
381 __ str(source.AsArm().AsCoreRegister(), Address(SP, destination.GetStackIndex())); in Move32()
383 __ ldr(IP, Address(SP, source.GetStackIndex())); in Move32()
389 void CodeGeneratorARM::Move64(Location destination, Location source) { in Move64() argument
390 if (source.Equals(destination)) { in Move64()
394 if (source.IsRegister()) { in Move64()
395 __ Mov(destination.AsArm().AsRegisterPairLow(), source.AsArm().AsRegisterPairLow()); in Move64()
396 __ Mov(destination.AsArm().AsRegisterPairHigh(), source.AsArm().AsRegisterPairHigh()); in Move64()
397 } else if (source.IsQuickParameter()) { in Move64()
398 uint32_t argument_index = source.GetQuickParameterIndex(); in Move64()
405 DCHECK(source.IsDoubleStackSlot()); in Move64()
407 __ ldr(R1, Address(SP, source.GetStackIndex())); in Move64()
408 __ ldr(R2, Address(SP, source.GetHighStackIndex(kArmWordSize))); in Move64()
411 SP, source.GetStackIndex()); in Move64()
417 if (source.IsRegister()) { in Move64()
418 __ Mov(calling_convention.GetRegisterAt(argument_index), source.AsArm().AsRegisterPairLow()); in Move64()
419 __ str(source.AsArm().AsRegisterPairHigh(), in Move64()
422 DCHECK(source.IsDoubleStackSlot()); in Move64()
423 __ ldr(calling_convention.GetRegisterAt(argument_index), Address(SP, source.GetStackIndex())); in Move64()
424 __ ldr(R0, Address(SP, source.GetHighStackIndex(kArmWordSize))); in Move64()
429 if (source.IsRegister()) { in Move64()
430 if (source.AsArm().AsRegisterPair() == R1_R2) { in Move64()
434 __ StoreToOffset(kStoreWordPair, source.AsArm().AsRegisterPairLow(), in Move64()
437 } else if (source.IsQuickParameter()) { in Move64()
439 uint32_t argument_index = source.GetQuickParameterIndex(); in Move64()
446 DCHECK(source.IsDoubleStackSlot()); in Move64()
447 __ ldr(IP, Address(SP, source.GetStackIndex())); in Move64()
449 __ ldr(IP, Address(SP, source.GetHighStackIndex(kArmWordSize))); in Move64()
1506 Location source = move->GetSource(); in EmitMove() local
1509 if (source.IsRegister()) { in EmitMove()
1511 __ Mov(destination.AsArm().AsCoreRegister(), source.AsArm().AsCoreRegister()); in EmitMove()
1514 __ StoreToOffset(kStoreWord, source.AsArm().AsCoreRegister(), in EmitMove()
1517 } else if (source.IsStackSlot()) { in EmitMove()
1520 SP, source.GetStackIndex()); in EmitMove()
1523 __ LoadFromOffset(kLoadWord, IP, SP, source.GetStackIndex()); in EmitMove()
1527 DCHECK(source.IsConstant()); in EmitMove()
1528 DCHECK(source.GetConstant()->AsIntConstant() != nullptr); in EmitMove()
1529 int32_t value = source.GetConstant()->AsIntConstant()->GetValue(); in EmitMove()
1559 Location source = move->GetSource(); in EmitSwap() local
1562 if (source.IsRegister() && destination.IsRegister()) { in EmitSwap()
1563 DCHECK_NE(source.AsArm().AsCoreRegister(), IP); in EmitSwap()
1565 __ Mov(IP, source.AsArm().AsCoreRegister()); in EmitSwap()
1566 __ Mov(source.AsArm().AsCoreRegister(), destination.AsArm().AsCoreRegister()); in EmitSwap()
1568 } else if (source.IsRegister() && destination.IsStackSlot()) { in EmitSwap()
1569 Exchange(source.AsArm().AsCoreRegister(), destination.GetStackIndex()); in EmitSwap()
1570 } else if (source.IsStackSlot() && destination.IsRegister()) { in EmitSwap()
1571 Exchange(destination.AsArm().AsCoreRegister(), source.GetStackIndex()); in EmitSwap()
1572 } else if (source.IsStackSlot() && destination.IsStackSlot()) { in EmitSwap()
1573 Exchange(source.GetStackIndex(), destination.GetStackIndex()); in EmitSwap()