Mercurial > hg > truffle
comparison graal/com.oracle.max.asm/src/com/oracle/max/asm/target/amd64/AMD64Assembler.java @ 5717:1d2eeb28537f
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 28 Jun 2012 13:10:28 +0200 |
parents | 4d7175cf3526 |
children | 956217932b8c |
comparison
equal
deleted
inserted
replaced
5716:e4b9af013c4a | 5717:1d2eeb28537f |
---|---|
2183 | 2183 |
2184 /** | 2184 /** |
2185 * Creates prefix and the encoding of the lower 6 bits of the ModRM-Byte. It emits an operand prefix. If the given | 2185 * Creates prefix and the encoding of the lower 6 bits of the ModRM-Byte. It emits an operand prefix. If the given |
2186 * operands exceed 3 bits, the 4th bit is encoded in the prefix. | 2186 * operands exceed 3 bits, the 4th bit is encoded in the prefix. |
2187 * | 2187 * |
2188 * @param regEnc the encoding of the register part of the ModRM-Byte | 2188 * @param regEncoding the encoding of the register part of the ModRM-Byte |
2189 * @param rmEnc the encoding of the r/m part of the ModRM-Byte | 2189 * @param rmEncoding the encoding of the r/m part of the ModRM-Byte |
2190 * @return the lower 6 bits of the ModRM-Byte that should be emitted | 2190 * @return the lower 6 bits of the ModRM-Byte that should be emitted |
2191 */ | 2191 */ |
2192 private int prefixqAndEncode(int regEncoding, int rmEncoding) { | 2192 private int prefixqAndEncode(int regEncoding, int rmEncoding) { |
2193 int rmEnc = rmEncoding; | 2193 int rmEnc = rmEncoding; |
2194 int regEnc = regEncoding; | 2194 int regEnc = regEncoding; |