hotspot/src/cpu/x86/vm/templateInterpreter_x86_64.cpp
changeset 31790 4a08476437e8
parent 28650 772aaab2582f
child 32391 01e2f5e916c7
equal deleted inserted replaced
31788:04af91b7fadd 31790:4a08476437e8
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   807 // Interpreter stub for calling a native method. (asm interpreter)
   807 // Interpreter stub for calling a native method. (asm interpreter)
   808 // This sets up a somewhat different looking stack for calling the
   808 // This sets up a somewhat different looking stack for calling the
   809 // native method than the typical interpreter frame setup.
   809 // native method than the typical interpreter frame setup.
   810 address InterpreterGenerator::generate_native_entry(bool synchronized) {
   810 address InterpreterGenerator::generate_native_entry(bool synchronized) {
   811   // determine code generation flags
   811   // determine code generation flags
   812   bool inc_counter  = UseCompiler || CountCompiledCalls;
   812   bool inc_counter  = UseCompiler || CountCompiledCalls || LogTouchedMethods;
   813 
   813 
   814   // rbx: Method*
   814   // rbx: Method*
   815   // r13: sender sp
   815   // r13: sender sp
   816 
   816 
   817   address entry_point = __ pc();
   817   address entry_point = __ pc();
  1254 //
  1254 //
  1255 // Generic interpreted method entry to (asm) interpreter
  1255 // Generic interpreted method entry to (asm) interpreter
  1256 //
  1256 //
  1257 address InterpreterGenerator::generate_normal_entry(bool synchronized) {
  1257 address InterpreterGenerator::generate_normal_entry(bool synchronized) {
  1258   // determine code generation flags
  1258   // determine code generation flags
  1259   bool inc_counter  = UseCompiler || CountCompiledCalls;
  1259   bool inc_counter  = UseCompiler || CountCompiledCalls || LogTouchedMethods;
  1260 
  1260 
  1261   // ebx: Method*
  1261   // ebx: Method*
  1262   // r13: sender sp
  1262   // r13: sender sp
  1263   address entry_point = __ pc();
  1263   address entry_point = __ pc();
  1264 
  1264