Reviewers: Toon Verwaest,

Message:
PTAL.

Description:
Spill doubles correctly for x32 port.

Please review this at https://codereview.chromium.org/324253004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+6, -0 lines):
  M src/x64/lithium-x64.cc


Index: src/x64/lithium-x64.cc
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
index bb2ecc06b8e4e374e838cf2847f08221ed9f8faa..ec717504c6d7eddce1e12d90ebc65fcfa12b64e8 100644
--- a/src/x64/lithium-x64.cc
+++ b/src/x64/lithium-x64.cc
@@ -331,6 +331,12 @@ void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {


 int LPlatformChunk::GetNextSpillIndex(RegisterKind kind) {
+  if (kind == DOUBLE_REGISTERS && kDoubleSize == 2 * kPointerSize) {
+    // Skip a slot if for a double-width slot for x32 port.
+    // TODO(haitao): make sure spilled doubles are aligned for x32 port.
+    spill_slot_count_++;
+    spill_slot_count_ |= 1;
+  }
   return spill_slot_count_++;
 }



--
--
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/d/optout.

Reply via email to