Revision: 19090
Author: [email protected]
Date: Wed Feb 5 08:06:23 2014 UTC
Log: A64: Implement support for stack slots in gap resolver
BUG=none
LOG=y
[email protected], [email protected]
Review URL: https://codereview.chromium.org/138943008
http://code.google.com/p/v8/source/detail?r=19090
Modified:
/branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc
=======================================
--- /branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc Fri Jan
31 17:19:15 2014 UTC
+++ /branches/experimental/a64/src/a64/lithium-gap-resolver-a64.cc Wed Feb
5 08:06:23 2014 UTC
@@ -184,7 +184,7 @@
if (source->IsRegister()) {
__ Mov(kSavedValue, cgen_->ToRegister(source));
} else if (source->IsStackSlot()) {
- UNIMPLEMENTED();
+ __ Ldr(kSavedValue, cgen_->ToMemOperand(source));
} else if (source->IsDoubleRegister()) {
// TODO(all): We should use a double register to store the value to
avoid
// the penalty of the mov across register banks. We are going to
reserve
@@ -194,7 +194,7 @@
// do that.
__ Fmov(kSavedValue, cgen_->ToDoubleRegister(source));
} else if (source->IsDoubleStackSlot()) {
- UNIMPLEMENTED();
+ __ Ldr(kSavedValue, cgen_->ToMemOperand(source));
} else {
UNREACHABLE();
}
@@ -213,11 +213,11 @@
if (saved_destination_->IsRegister()) {
__ Mov(cgen_->ToRegister(saved_destination_), kSavedValue);
} else if (saved_destination_->IsStackSlot()) {
- UNIMPLEMENTED();
+ __ Str(kSavedValue, cgen_->ToMemOperand(saved_destination_));
} else if (saved_destination_->IsDoubleRegister()) {
__ Fmov(cgen_->ToDoubleRegister(saved_destination_), kSavedValue);
} else if (saved_destination_->IsDoubleStackSlot()) {
- UNIMPLEMENTED();
+ __ Str(kSavedValue, cgen_->ToMemOperand(saved_destination_));
} else {
UNREACHABLE();
}
@@ -294,8 +294,8 @@
if (destination->IsDoubleRegister()) {
__ Ldr(cgen_->ToDoubleRegister(destination), src);
} else {
- // TODO(all): double stack slot to double stack slot move.
- UNIMPLEMENTED();
+ ASSERT(destination->IsDoubleStackSlot());
+ EmitStackSlotMove(index);
}
} else {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.