comparison graal/com.oracle.max.asm/src/com/oracle/max/asm/target/amd64/AMD64MacroAssembler.java @ 6329:92bc58dc5b5e

More clean up and documentation in api.code and api.meta.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 07 Sep 2012 13:40:53 +0200
parents 69a8969dbf40
children
comparison
equal deleted inserted replaced
6328:6e66d97a16ae 6329:92bc58dc5b5e
303 /** 303 /**
304 * Non-atomic write of a 64-bit constant to memory. Do not use 304 * Non-atomic write of a 64-bit constant to memory. Do not use
305 * if the address might be a volatile field! 305 * if the address might be a volatile field!
306 */ 306 */
307 public void movlong(Address dst, long src) { 307 public void movlong(Address dst, long src) {
308 Address high = new Address(dst.kind, dst.getBase(), dst.getIndex(), dst.getScale(), dst.getDisplacement() + 4); 308 Address high = new Address(dst.getKind(), dst.getBase(), dst.getIndex(), dst.getScale(), dst.getDisplacement() + 4);
309 movl(dst, (int) (src & 0xFFFFFFFF)); 309 movl(dst, (int) (src & 0xFFFFFFFF));
310 movl(high, (int) (src >> 32)); 310 movl(high, (int) (src >> 32));
311 } 311 }
312 312
313 public void xchgptr(Register src1, Register src2) { 313 public void xchgptr(Register src1, Register src2) {