Revision: 9598
Author:   [email protected]
Date:     Wed Oct 12 09:00:59 2011
Log:      Fixing bug caused by missing smi-tag.

Review URL: http://codereview.chromium.org/8240007
http://code.google.com/p/v8/source/detail?r=9598

Modified:
 /branches/bleeding_edge/src/x64/stub-cache-x64.cc

=======================================
--- /branches/bleeding_edge/src/x64/stub-cache-x64.cc Tue Oct 11 09:02:45 2011 +++ /branches/bleeding_edge/src/x64/stub-cache-x64.cc Wed Oct 12 09:00:59 2011
@@ -3799,6 +3799,8 @@
   __ jmp(ic_force_generic, RelocInfo::CODE_TARGET);

   __ bind(&transition_elements_kind);
+  // Restore smi-tagging of rcx.
+  __ Integer32ToSmi(rcx, rcx);
   Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
   __ jmp(ic_miss, RelocInfo::CODE_TARGET);
 }

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

Reply via email to