< prev index next >

src/hotspot/cpu/s390/interpreterRT_s390.cpp

Print this page




  15  *
  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/macroAssembler.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/oop.inline.hpp"
  33 #include "runtime/handles.inline.hpp"
  34 #include "runtime/icache.hpp"
  35 #include "runtime/interfaceSupport.hpp"
  36 #include "runtime/signature.hpp"
  37 
  38 // Access macros for Java and C arguments.
  39 // First Java argument is at index-1.
  40 #define locals_j_arg_at(index) Address(Z_R1/*locals*/, in_ByteSize((-(index)*wordSize)))
  41 
  42 #define __ _masm->
  43 
  44 static int sp_c_int_arg_offset(int arg_nr, int fp_arg_nr) {
  45   int int_arg_nr = arg_nr-fp_arg_nr;
  46 
  47   // arg_nr, fp_arg_nr start with 1 => int_arg_nr starts with 0
  48   if (int_arg_nr < 5) {
  49     return int_arg_nr * wordSize + _z_abi(carg_1);
  50   }
  51   int offset = int_arg_nr - 5 + (fp_arg_nr > 4 ? fp_arg_nr - 4 : 0);
  52   return offset * wordSize + _z_abi(remaining_cargs);
  53 }
  54 
  55 static int sp_c_fp_arg_offset(int arg_nr, int fp_arg_nr) {




  15  *
  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/macroAssembler.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/oop.inline.hpp"
  33 #include "runtime/handles.inline.hpp"
  34 #include "runtime/icache.hpp"
  35 #include "runtime/interfaceSupport.inline.hpp"
  36 #include "runtime/signature.hpp"
  37 
  38 // Access macros for Java and C arguments.
  39 // First Java argument is at index-1.
  40 #define locals_j_arg_at(index) Address(Z_R1/*locals*/, in_ByteSize((-(index)*wordSize)))
  41 
  42 #define __ _masm->
  43 
  44 static int sp_c_int_arg_offset(int arg_nr, int fp_arg_nr) {
  45   int int_arg_nr = arg_nr-fp_arg_nr;
  46 
  47   // arg_nr, fp_arg_nr start with 1 => int_arg_nr starts with 0
  48   if (int_arg_nr < 5) {
  49     return int_arg_nr * wordSize + _z_abi(carg_1);
  50   }
  51   int offset = int_arg_nr - 5 + (fp_arg_nr > 4 ? fp_arg_nr - 4 : 0);
  52   return offset * wordSize + _z_abi(remaining_cargs);
  53 }
  54 
  55 static int sp_c_fp_arg_offset(int arg_nr, int fp_arg_nr) {


< prev index next >