comparison src/cpu/x86/vm/assembler_x86_64.cpp @ 50:485d403e94e1

6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers Summary: (for Serguei) Allow for Linux builds with Sun Studio Linux compilers Reviewed-by: sspitsyn, ohair
author dcubed
date Wed, 12 Mar 2008 18:37:03 -0700
parents a61af66fc99e
children d6fe2e4959d6
comparison
equal deleted inserted replaced
49:31000d79ec71 50:485d403e94e1
1302 prefix(dst, src); 1302 prefix(dst, src);
1303 emit_byte(0x89); 1303 emit_byte(0x89);
1304 emit_operand(src, dst); 1304 emit_operand(src, dst);
1305 } 1305 }
1306 1306
1307 void Assembler::mov64(Register dst, int64_t imm64) { 1307 void Assembler::mov64(Register dst, intptr_t imm64) {
1308 InstructionMark im(this); 1308 InstructionMark im(this);
1309 int encode = prefixq_and_encode(dst->encoding()); 1309 int encode = prefixq_and_encode(dst->encoding());
1310 emit_byte(0xB8 | encode); 1310 emit_byte(0xB8 | encode);
1311 emit_long64(imm64); 1311 emit_long64(imm64);
1312 } 1312 }
1329 prefixq(src, dst); 1329 prefixq(src, dst);
1330 emit_byte(0x8B); 1330 emit_byte(0x8B);
1331 emit_operand(dst, src); 1331 emit_operand(dst, src);
1332 } 1332 }
1333 1333
1334 void Assembler::mov64(Address dst, int64_t imm32) { 1334 void Assembler::mov64(Address dst, intptr_t imm32) {
1335 assert(is_simm32(imm32), "lost bits"); 1335 assert(is_simm32(imm32), "lost bits");
1336 InstructionMark im(this); 1336 InstructionMark im(this);
1337 prefixq(dst); 1337 prefixq(dst);
1338 emit_byte(0xC7); 1338 emit_byte(0xC7);
1339 emit_operand(rax, dst, 4); 1339 emit_operand(rax, dst, 4);