Reviewers: iposva, Erik Corry,

Description:
Fixed register usage in 64-bit version of
KeyedLoadIC::GenerateExternalArray which was causing it to go to the
slow case all the time.


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

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

Affected files:
   M     src/x64/ic-x64.cc


Index: src/x64/ic-x64.cc
===================================================================
--- src/x64/ic-x64.cc   (revision 3394)
+++ src/x64/ic-x64.cc   (working copy)
@@ -378,7 +378,7 @@
    // ExternalArray.
    // rax: index (as a smi)
    // rcx: JSObject
-  __ movq(rcx, FieldOperand(rdx, JSObject::kElementsOffset));
+  __ movq(rcx, FieldOperand(rcx, JSObject::kElementsOffset));
    __ CompareRoot(FieldOperand(rcx, HeapObject::kMapOffset),
                   Heap::RootIndexForExternalArrayType(array_type));
    __ j(not_equal, &slow);


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

Reply via email to