Mercurial > hg > truffle
diff src/cpu/x86/vm/assembler_x86.cpp @ 1914:ae065c367d93
6987135: Performance regression on Intel platform with 32-bits edition between 6u13 and 6u14.
Summary: Use hardware DIV instruction for long division by constant when it is faster than code with multiply.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 02 Nov 2010 09:00:37 -0700 |
parents | d55217dc206f |
children | 2fe998383789 |
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp Sat Oct 30 13:08:23 2010 -0700 +++ b/src/cpu/x86/vm/assembler_x86.cpp Tue Nov 02 09:00:37 2010 -0700 @@ -1288,7 +1288,7 @@ if (is8bit(value)) { emit_byte(0x6B); emit_byte(0xC0 | encode); - emit_byte(value); + emit_byte(value & 0xFF); } else { emit_byte(0x69); emit_byte(0xC0 | encode); @@ -3903,7 +3903,7 @@ if (is8bit(value)) { emit_byte(0x6B); emit_byte(0xC0 | encode); - emit_byte(value); + emit_byte(value & 0xFF); } else { emit_byte(0x69); emit_byte(0xC0 | encode);