Reviewers: danno,

Description:
Fix overlapping registers in external array stores on x64.


[email protected]
BUG=
TEST=


Please review this at http://codereview.chromium.org/6794047/

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

Affected files:
  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 6987d452fd4c0de4fcad35d327c8a91945516e05..0e851bc17508054106d673fb6eab89b4151df99f 100644
--- a/src/x64/lithium-x64.cc
+++ b/src/x64/lithium-x64.cc
@@ -1891,7 +1891,7 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement(
       array_type == kExternalFloatArray;
   LOperand* val = val_is_temp_register
       ? UseTempRegister(instr->value())
-      : UseRegister(instr->key());
+      : UseRegister(instr->value());
   LOperand* key = UseRegister(instr->key());

   return new LStoreKeyedSpecializedArrayElement(external_pointer,


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to