1.1 --- a/src/cpu/x86/vm/macroAssembler_x86.cpp Thu Dec 20 14:17:52 2012 -0800 1.2 +++ b/src/cpu/x86/vm/macroAssembler_x86.cpp Thu Dec 20 18:53:44 2012 -0800 1.3 @@ -1023,7 +1023,7 @@ 1.4 1.5 void MacroAssembler::leave() { 1.6 // %%% is this really better? Why not on 32bit too? 1.7 - emit_byte(0xC9); // LEAVE 1.8 + emit_int8((unsigned char)0xC9); // LEAVE 1.9 } 1.10 1.11 void MacroAssembler::lneg(Register hi, Register lo) { 1.12 @@ -2112,11 +2112,11 @@ 1.13 if (UseAddressNop) { 1.14 addr_nop_5(); 1.15 } else { 1.16 - emit_byte(0x26); // es: 1.17 - emit_byte(0x2e); // cs: 1.18 - emit_byte(0x64); // fs: 1.19 - emit_byte(0x65); // gs: 1.20 - emit_byte(0x90); 1.21 + emit_int8(0x26); // es: 1.22 + emit_int8(0x2e); // cs: 1.23 + emit_int8(0x64); // fs: 1.24 + emit_int8(0x65); // gs: 1.25 + emit_int8((unsigned char)0x90); 1.26 } 1.27 } 1.28 1.29 @@ -2534,12 +2534,12 @@ 1.30 int offs = (intptr_t)dst.target() - ((intptr_t)pc()); 1.31 if (dst.reloc() == relocInfo::none && is8bit(offs - short_size)) { 1.32 // 0111 tttn #8-bit disp 1.33 - emit_byte(0x70 | cc); 1.34 - emit_byte((offs - short_size) & 0xFF); 1.35 + emit_int8(0x70 | cc); 1.36 + emit_int8((offs - short_size) & 0xFF); 1.37 } else { 1.38 // 0000 1111 1000 tttn #32-bit disp 1.39 - emit_byte(0x0F); 1.40 - emit_byte(0x80 | cc); 1.41 + emit_int8(0x0F); 1.42 + emit_int8((unsigned char)(0x80 | cc)); 1.43 emit_long(offs - long_size); 1.44 } 1.45 } else {