Mercurial > hg > truffle
comparison src/cpu/x86/vm/bytecodeInterpreter_x86.inline.hpp @ 1681:126ea7725993
6953477: Increase portability and flexibility of building Hotspot
Summary: A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail.
Reviewed-by: phh, never, coleenp, dholmes
author | bobv |
---|---|
date | Tue, 03 Aug 2010 08:13:38 -0400 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1680:a64438a2b7e8 | 1681:126ea7725993 |
---|---|
234 if ((juint)op1 == 0x80000000 && op2 == -1) return 0; | 234 if ((juint)op1 == 0x80000000 && op2 == -1) return 0; |
235 else return op1 % op2; | 235 else return op1 % op2; |
236 } | 236 } |
237 | 237 |
238 inline jint BytecodeInterpreter::VMintShl(jint op1, jint op2) { | 238 inline jint BytecodeInterpreter::VMintShl(jint op1, jint op2) { |
239 return op1 << op2; | 239 return op1 << op2; |
240 } | 240 } |
241 | 241 |
242 inline jint BytecodeInterpreter::VMintShr(jint op1, jint op2) { | 242 inline jint BytecodeInterpreter::VMintShr(jint op1, jint op2) { |
243 return op1 >> op2; // QQ op2 & 0x1f?? | 243 return op1 >> (op2 & 0x1f); |
244 } | 244 } |
245 | 245 |
246 inline jint BytecodeInterpreter::VMintSub(jint op1, jint op2) { | 246 inline jint BytecodeInterpreter::VMintSub(jint op1, jint op2) { |
247 return op1 - op2; | 247 return op1 - op2; |
248 } | 248 } |
249 | 249 |
250 inline jint BytecodeInterpreter::VMintUshr(jint op1, jint op2) { | 250 inline jint BytecodeInterpreter::VMintUshr(jint op1, jint op2) { |
251 return ((juint) op1) >> op2; // QQ op2 & 0x1f?? | 251 return ((juint) op1) >> (op2 & 0x1f); |
252 } | 252 } |
253 | 253 |
254 inline jint BytecodeInterpreter::VMintXor(jint op1, jint op2) { | 254 inline jint BytecodeInterpreter::VMintXor(jint op1, jint op2) { |
255 return op1 ^ op2; | 255 return op1 ^ op2; |
256 } | 256 } |