comparison src/hotspot/cpu/s390/interpreterRT_s390.cpp @ 54970:b776653628c5

8218991: s390: Add intrinsic for GHASH algorithm Reviewed-by: lucy, simonis
author mdoerr
date Mon, 18 Feb 2019 12:16:02 +0100
parents ef5d5d343e2a
children 5df03f58d25b
comparison
equal deleted inserted replaced
2:50476f1fe027 3:76f0d1bebc87
23 * 23 *
24 */ 24 */
25 25
26 #include "precompiled.hpp" 26 #include "precompiled.hpp"
27 #include "asm/macroAssembler.inline.hpp" 27 #include "asm/macroAssembler.inline.hpp"
28 #include "interpreter/interp_masm.hpp"
28 #include "interpreter/interpreter.hpp" 29 #include "interpreter/interpreter.hpp"
29 #include "interpreter/interpreterRuntime.hpp" 30 #include "interpreter/interpreterRuntime.hpp"
30 #include "memory/allocation.inline.hpp" 31 #include "memory/allocation.inline.hpp"
31 #include "memory/universe.hpp" 32 #include "memory/universe.hpp"
32 #include "oops/oop.inline.hpp" 33 #include "oops/oop.inline.hpp"
62 int offset = fp_arg_nr - 5 + (int_arg_nr > 4 ? int_arg_nr - 4 : 0); 63 int offset = fp_arg_nr - 5 + (int_arg_nr > 4 ? int_arg_nr - 4 : 0);
63 return offset * wordSize + _z_abi(remaining_cargs); 64 return offset * wordSize + _z_abi(remaining_cargs);
64 } 65 }
65 66
66 // Implementation of SignatureHandlerGenerator 67 // Implementation of SignatureHandlerGenerator
68 InterpreterRuntime::SignatureHandlerGenerator::SignatureHandlerGenerator(
69 const methodHandle& method, CodeBuffer* buffer) : NativeSignatureIterator(method) {
70 _masm = new MacroAssembler(buffer);
71 _fp_arg_nr = 0;
72 }
67 73
68 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() { 74 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() {
69 int int_arg_nr = jni_offset() - _fp_arg_nr; 75 int int_arg_nr = jni_offset() - _fp_arg_nr;
70 Register r = (int_arg_nr < 5 /*max_int_register_arguments*/) ? 76 Register r = (int_arg_nr < 5 /*max_int_register_arguments*/) ?
71 as_Register(int_arg_nr) + Z_ARG1->encoding() : Z_R0; 77 as_Register(int_arg_nr) + Z_ARG1->encoding() : Z_R0;