hotspot/src/cpu/aarch64/vm/templateInterpreter_aarch64.cpp
changeset 31790 4a08476437e8
parent 29479 762d0de5118a
child 32395 13b0caf18153
equal deleted inserted replaced
31788:04af91b7fadd 31790:4a08476437e8
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2014, Red Hat Inc. 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.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     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
     7  * under the terms of the GNU General Public License version 2 only, as
   867 // Interpreter stub for calling a native method. (asm interpreter)
   867 // Interpreter stub for calling a native method. (asm interpreter)
   868 // This sets up a somewhat different looking stack for calling the
   868 // This sets up a somewhat different looking stack for calling the
   869 // native method than the typical interpreter frame setup.
   869 // native method than the typical interpreter frame setup.
   870 address InterpreterGenerator::generate_native_entry(bool synchronized) {
   870 address InterpreterGenerator::generate_native_entry(bool synchronized) {
   871   // determine code generation flags
   871   // determine code generation flags
   872   bool inc_counter  = UseCompiler || CountCompiledCalls;
   872   bool inc_counter  = UseCompiler || CountCompiledCalls || LogTouchedMethods;
   873 
   873 
   874   // r1: Method*
   874   // r1: Method*
   875   // rscratch1: sender sp
   875   // rscratch1: sender sp
   876 
   876 
   877   address entry_point = __ pc();
   877   address entry_point = __ pc();
  1305 //
  1305 //
  1306 // Generic interpreted method entry to (asm) interpreter
  1306 // Generic interpreted method entry to (asm) interpreter
  1307 //
  1307 //
  1308 address InterpreterGenerator::generate_normal_entry(bool synchronized) {
  1308 address InterpreterGenerator::generate_normal_entry(bool synchronized) {
  1309   // determine code generation flags
  1309   // determine code generation flags
  1310   bool inc_counter  = UseCompiler || CountCompiledCalls;
  1310   bool inc_counter  = UseCompiler || CountCompiledCalls || LogTouchedMethods;
  1311 
  1311 
  1312   // rscratch1: sender sp
  1312   // rscratch1: sender sp
  1313   address entry_point = __ pc();
  1313   address entry_point = __ pc();
  1314 
  1314 
  1315   const Address constMethod(rmethod, Method::const_offset());
  1315   const Address constMethod(rmethod, Method::const_offset());