Mercurial > hg > truffle
comparison graal/com.oracle.max.asm/src/com/oracle/max/asm/target/amd64/AMD64Assembler.java @ 4522:cf13124efdd9
Restructure phi functions in LIR; Re-enabled C1Visualizer output
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Wed, 08 Feb 2012 15:35:21 -0800 |
parents | 1aaf3592e516 |
children | efbb1e33e2f3 |
comparison
equal
deleted
inserted
replaced
4521:333896b40999 | 4522:cf13124efdd9 |
---|---|
757 emitByte(0xE9); | 757 emitByte(0xE9); |
758 emitInt((int) (disp - longSize)); | 758 emitInt((int) (disp - longSize)); |
759 } | 759 } |
760 } | 760 } |
761 | 761 |
762 @Override | |
762 public final void jmp(Label l) { | 763 public final void jmp(Label l) { |
763 if (l.isBound()) { | 764 if (l.isBound()) { |
764 jmp(l.position(), false); | 765 jmp(l.position(), false); |
765 } else { | 766 } else { |
766 // By default, forward jumps are always 32-bit displacements, since | 767 // By default, forward jumps are always 32-bit displacements, since |
2874 | 2875 |
2875 public void nullCheck(CiRegister r) { | 2876 public void nullCheck(CiRegister r) { |
2876 testl(AMD64.rax, new CiAddress(Word, r.asValue(Word), 0)); | 2877 testl(AMD64.rax, new CiAddress(Word, r.asValue(Word), 0)); |
2877 } | 2878 } |
2878 | 2879 |
2880 @Override | |
2879 public void align(int modulus) { | 2881 public void align(int modulus) { |
2880 if (codeBuffer.position() % modulus != 0) { | 2882 if (codeBuffer.position() % modulus != 0) { |
2881 nop(modulus - (codeBuffer.position() % modulus)); | 2883 nop(modulus - (codeBuffer.position() % modulus)); |
2882 } | 2884 } |
2883 } | 2885 } |