< prev index next >

src/hotspot/cpu/ppc/interpreterRT_ppc.cpp

Print this page




  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "asm/assembler.inline.hpp"
  28 #include "interpreter/interpreter.hpp"
  29 #include "interpreter/interpreterRuntime.hpp"
  30 #include "memory/allocation.inline.hpp"
  31 #include "memory/universe.hpp"
  32 #include "oops/method.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/icache.hpp"
  36 #include "runtime/interfaceSupport.hpp"
  37 #include "runtime/signature.hpp"
  38 
  39 #define __ _masm->
  40 
  41 // Access macros for Java and C arguments.
  42 // The first Java argument is at index -1.
  43 #define locals_j_arg_at(index)    (Interpreter::local_offset_in_bytes(index)), R18_locals
  44 // The first C argument is at index 0.
  45 #define sp_c_arg_at(index)        ((index)*wordSize + _abi(carg_1)), R1_SP
  46 
  47 // Implementation of SignatureHandlerGenerator
  48 
  49 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() {
  50   Argument jni_arg(jni_offset());
  51   Register r = jni_arg.is_register() ? jni_arg.as_register() : R0;
  52 
  53   __ lwa(r, locals_j_arg_at(offset())); // sign extension of integer
  54   if (DEBUG_ONLY(true ||) !jni_arg.is_register()) {
  55     __ std(r, sp_c_arg_at(jni_arg.number()));
  56   }




  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "asm/assembler.inline.hpp"
  28 #include "interpreter/interpreter.hpp"
  29 #include "interpreter/interpreterRuntime.hpp"
  30 #include "memory/allocation.inline.hpp"
  31 #include "memory/universe.hpp"
  32 #include "oops/method.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/icache.hpp"
  36 #include "runtime/interfaceSupport.inline.hpp"
  37 #include "runtime/signature.hpp"
  38 
  39 #define __ _masm->
  40 
  41 // Access macros for Java and C arguments.
  42 // The first Java argument is at index -1.
  43 #define locals_j_arg_at(index)    (Interpreter::local_offset_in_bytes(index)), R18_locals
  44 // The first C argument is at index 0.
  45 #define sp_c_arg_at(index)        ((index)*wordSize + _abi(carg_1)), R1_SP
  46 
  47 // Implementation of SignatureHandlerGenerator
  48 
  49 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() {
  50   Argument jni_arg(jni_offset());
  51   Register r = jni_arg.is_register() ? jni_arg.as_register() : R0;
  52 
  53   __ lwa(r, locals_j_arg_at(offset())); // sign extension of integer
  54   if (DEBUG_ONLY(true ||) !jni_arg.is_register()) {
  55     __ std(r, sp_c_arg_at(jni_arg.number()));
  56   }


< prev index next >