Mercurial > hg > truffle
changeset 11240:84589a49d184
used movslq instead of movl in CRC32 interpreter stub
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 07 Aug 2013 01:54:09 +0200 |
parents | 6c098f64a7a6 |
children | f850996cc98d |
files | src/cpu/x86/vm/templateInterpreter_x86_64.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/x86/vm/templateInterpreter_x86_64.cpp Wed Aug 07 01:52:44 2013 +0200 +++ b/src/cpu/x86/vm/templateInterpreter_x86_64.cpp Wed Aug 07 01:54:09 2013 +0200 @@ -1001,13 +1001,13 @@ // Calculate address of start element if (kind == Interpreter::java_util_zip_CRC32_updateByteBuffer) { __ movptr(buf, Address(rsp, 3*wordSize)); // long buf - __ movl(len, Address(rsp, 2*wordSize)); // offset + __ movslq(len, Address(rsp, 2*wordSize)); // offset __ addq(buf, len); // + offset __ movl(crc, Address(rsp, 5*wordSize)); // Initial CRC } else { __ movptr(buf, Address(rsp, 3*wordSize)); // byte[] array __ addptr(buf, arrayOopDesc::base_offset_in_bytes(T_BYTE)); // + header size - __ movl(len, Address(rsp, 2*wordSize)); // offset + __ movslq(len, Address(rsp, 2*wordSize)); // offset __ addq(buf, len); // + offset __ movl(crc, Address(rsp, 4*wordSize)); // Initial CRC }