Mercurial > hg > truffle
comparison src/cpu/zero/vm/bytecodeInterpreter_zero.inline.hpp @ 1729:13b87063b4d8
6977640: Zero and Shark fixes
Summary: A number of fixes for Zero and Shark.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Wed, 18 Aug 2010 01:22:16 -0700 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1728:a62d332029cf | 1729:13b87063b4d8 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007 Red Hat, Inc. | 3 * Copyright 2007, 2010 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * | 5 * |
6 * This code is free software; you can redistribute it and/or modify it | 6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as | 7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. | 8 * published by the Free Software Foundation. |
266 | 266 |
267 inline jint BytecodeInterpreter::VMintSub(jint op1, jint op2) { | 267 inline jint BytecodeInterpreter::VMintSub(jint op1, jint op2) { |
268 return op1 - op2; | 268 return op1 - op2; |
269 } | 269 } |
270 | 270 |
271 inline jint BytecodeInterpreter::VMintUshr(jint op1, jint op2) { | 271 inline juint BytecodeInterpreter::VMintUshr(jint op1, jint op2) { |
272 return ((juint) op1) >> (op2 & 0x1F); | 272 return ((juint) op1) >> (op2 & 0x1F); |
273 } | 273 } |
274 | 274 |
275 inline jint BytecodeInterpreter::VMintXor(jint op1, jint op2) { | 275 inline jint BytecodeInterpreter::VMintXor(jint op1, jint op2) { |
276 return op1 ^ op2; | 276 return op1 ^ op2; |