< prev index next >

src/hotspot/cpu/aarch64/interpreterRT_aarch64.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 "interpreter/interpreter.hpp"
  28 #include "interpreter/interpreterRuntime.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "memory/universe.hpp"
  31 #include "oops/method.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 #define __ _masm->
  39 
  40 // Implementation of SignatureHandlerGenerator
  41 Register InterpreterRuntime::SignatureHandlerGenerator::from() { return rlocals; }
  42 Register InterpreterRuntime::SignatureHandlerGenerator::to()   { return sp; }
  43 Register InterpreterRuntime::SignatureHandlerGenerator::temp() { return rscratch1; }
  44 
  45 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() {
  46   const Address src(from(), Interpreter::local_offset_in_bytes(offset()));
  47 
  48   switch (_num_int_args) {
  49   case 0:
  50     __ ldr(c_rarg1, src);
  51     _num_int_args++;
  52     break;
  53   case 1:
  54     __ ldr(c_rarg2, src);
  55     _num_int_args++;




  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 "interpreter/interpreter.hpp"
  28 #include "interpreter/interpreterRuntime.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "memory/universe.hpp"
  31 #include "oops/method.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 #define __ _masm->
  39 
  40 // Implementation of SignatureHandlerGenerator
  41 Register InterpreterRuntime::SignatureHandlerGenerator::from() { return rlocals; }
  42 Register InterpreterRuntime::SignatureHandlerGenerator::to()   { return sp; }
  43 Register InterpreterRuntime::SignatureHandlerGenerator::temp() { return rscratch1; }
  44 
  45 void InterpreterRuntime::SignatureHandlerGenerator::pass_int() {
  46   const Address src(from(), Interpreter::local_offset_in_bytes(offset()));
  47 
  48   switch (_num_int_args) {
  49   case 0:
  50     __ ldr(c_rarg1, src);
  51     _num_int_args++;
  52     break;
  53   case 1:
  54     __ ldr(c_rarg2, src);
  55     _num_int_args++;


< prev index next >