Lines Matching defs:destination

368 void CodeGeneratorARM::Move32(Location destination, Location source) {
369 if (source.Equals(destination)) {
372 if (destination.IsRegister()) {
374 __ Mov(destination.AsArm().AsCoreRegister(), source.AsArm().AsCoreRegister());
376 __ ldr(destination.AsArm().AsCoreRegister(), Address(SP, source.GetStackIndex()));
379 DCHECK(destination.IsStackSlot());
381 __ str(source.AsArm().AsCoreRegister(), Address(SP, destination.GetStackIndex()));
384 __ str(IP, Address(SP, destination.GetStackIndex()));
389 void CodeGeneratorARM::Move64(Location destination, Location source) {
390 if (source.Equals(destination)) {
393 if (destination.IsRegister()) {
395 __ Mov(destination.AsArm().AsRegisterPairLow(), source.AsArm().AsRegisterPairLow());
396 __ Mov(destination.AsArm().AsRegisterPairHigh(), source.AsArm().AsRegisterPairHigh());
400 __ Mov(destination.AsArm().AsRegisterPairLow(),
402 __ ldr(destination.AsArm().AsRegisterPairHigh(),
406 if (destination.AsArm().AsRegisterPair() == R1_R2) {
410 __ LoadFromOffset(kLoadWordPair, destination.AsArm().AsRegisterPairLow(),
414 } else if (destination.IsQuickParameter()) {
416 uint32_t argument_index = destination.GetQuickParameterIndex();
428 DCHECK(destination.IsDoubleStackSlot());
431 __ str(R1, Address(SP, destination.GetStackIndex()));
432 __ str(R2, Address(SP, destination.GetHighStackIndex(kArmWordSize)));
435 SP, destination.GetStackIndex());
441 Address(SP, destination.GetStackIndex()));
444 __ str(R0, Address(SP, destination.GetHighStackIndex(kArmWordSize)));
448 __ str(IP, Address(SP, destination.GetStackIndex()));
450 __ str(IP, Address(SP, destination.GetHighStackIndex(kArmWordSize)));
1507 Location destination = move->GetDestination();
1510 if (destination.IsRegister()) {
1511 __ Mov(destination.AsArm().AsCoreRegister(), source.AsArm().AsCoreRegister());
1513 DCHECK(destination.IsStackSlot());
1515 SP, destination.GetStackIndex());
1518 if (destination.IsRegister()) {
1519 __ LoadFromOffset(kLoadWord, destination.AsArm().AsCoreRegister(),
1522 DCHECK(destination.IsStackSlot());
1524 __ StoreToOffset(kStoreWord, IP, SP, destination.GetStackIndex());
1530 if (destination.IsRegister()) {
1531 __ LoadImmediate(destination.AsArm().AsCoreRegister(), value);
1533 DCHECK(destination.IsStackSlot());
1535 __ str(IP, Address(SP, destination.GetStackIndex()));
1560 Location destination = move->GetDestination();
1562 if (source.IsRegister() && destination.IsRegister()) {
1564 DCHECK_NE(destination.AsArm().AsCoreRegister(), IP);
1566 __ Mov(source.AsArm().AsCoreRegister(), destination.AsArm().AsCoreRegister());
1567 __ Mov(destination.AsArm().AsCoreRegister(), IP);
1568 } else if (source.IsRegister() && destination.IsStackSlot()) {
1569 Exchange(source.AsArm().AsCoreRegister(), destination.GetStackIndex());
1570 } else if (source.IsStackSlot() && destination.IsRegister()) {
1571 Exchange(destination.AsArm().AsCoreRegister(), source.GetStackIndex());
1572 } else if (source.IsStackSlot() && destination.IsStackSlot()) {
1573 Exchange(source.GetStackIndex(), destination.GetStackIndex());