< prev index next >

src/cpu/aarch64/vm/interp_masm_aarch64.hpp

Print this page
rev 8067 : 8077615: AARCH64: Add C2 intrinsic for BigInteger::multiplyToLen() method
Summary: Add C2 intrinsic for BigInteger::multiplyToLen() on AArch64.
Reviewed-by: kvn
   1 /*
   2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2014, Red Hat Inc. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   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
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  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 #ifndef CPU_AARCH64_VM_INTERP_MASM_AARCH64_64_HPP
  27 #define CPU_AARCH64_VM_INTERP_MASM_AARCH64_64_HPP
  28 
  29 #include "asm/macroAssembler.hpp"
  30 #include "asm/macroAssembler.inline.hpp"
  31 #include "interpreter/invocationCounter.hpp"
  32 #include "runtime/frame.hpp"
  33 
  34 // This file specializes the assember with interpreter-specific macros
  35 
  36 
  37 class InterpreterMacroAssembler: public MacroAssembler {
  38 #ifndef CC_INTERP
  39  protected:
  40 
  41  protected:
  42   // Interpreter specific version of call_VM_base


  43   virtual void call_VM_leaf_base(address entry_point,
  44                                  int number_of_arguments);
  45 
  46   virtual void call_VM_base(Register oop_result,
  47                             Register java_thread,
  48                             Register last_java_sp,
  49                             address  entry_point,
  50                             int number_of_arguments,
  51                             bool check_exceptions);
  52 
  53   virtual void check_and_handle_popframe(Register java_thread);
  54   virtual void check_and_handle_earlyret(Register java_thread);
  55 
  56   // base routine for all dispatches
  57   void dispatch_base(TosState state, address* table, bool verifyoop = true);
  58 #endif // CC_INTERP
  59 
  60  public:
  61   InterpreterMacroAssembler(CodeBuffer* code) : MacroAssembler(code) {}
  62 


   1 /*
   2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2014, 2015, Red Hat Inc. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   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
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  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 #ifndef CPU_AARCH64_VM_INTERP_MASM_AARCH64_64_HPP
  27 #define CPU_AARCH64_VM_INTERP_MASM_AARCH64_64_HPP
  28 
  29 #include "asm/macroAssembler.hpp"
  30 #include "asm/macroAssembler.inline.hpp"
  31 #include "interpreter/invocationCounter.hpp"
  32 #include "runtime/frame.hpp"
  33 
  34 // This file specializes the assember with interpreter-specific macros
  35 
  36 
  37 class InterpreterMacroAssembler: public MacroAssembler {
  38 #ifndef CC_INTERP
  39  protected:
  40 
  41  protected:
  42   // Interpreter specific version of call_VM_base
  43   using MacroAssembler::call_VM_leaf_base;
  44 
  45   virtual void call_VM_leaf_base(address entry_point,
  46                                  int number_of_arguments);
  47 
  48   virtual void call_VM_base(Register oop_result,
  49                             Register java_thread,
  50                             Register last_java_sp,
  51                             address  entry_point,
  52                             int number_of_arguments,
  53                             bool check_exceptions);
  54 
  55   virtual void check_and_handle_popframe(Register java_thread);
  56   virtual void check_and_handle_earlyret(Register java_thread);
  57 
  58   // base routine for all dispatches
  59   void dispatch_base(TosState state, address* table, bool verifyoop = true);
  60 #endif // CC_INTERP
  61 
  62  public:
  63   InterpreterMacroAssembler(CodeBuffer* code) : MacroAssembler(code) {}
  64 


< prev index next >