src/cpu/x86/vm/interp_masm_x86_32.cpp

Print this page




   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "incls/_precompiled.incl"
  26 #include "incls/_interp_masm_x86_32.cpp.incl"





















  27 
  28 
  29 // Implementation of InterpreterMacroAssembler
  30 #ifdef CC_INTERP
  31 void InterpreterMacroAssembler::get_method(Register reg) {
  32   movptr(reg, Address(rbp, -(sizeof(BytecodeInterpreter) + 2 * wordSize)));
  33   movptr(reg, Address(reg, byte_offset_of(BytecodeInterpreter, _method)));
  34 }
  35 #endif // CC_INTERP
  36 
  37 
  38 #ifndef CC_INTERP
  39 void InterpreterMacroAssembler::call_VM_leaf_base(
  40   address entry_point,
  41   int     number_of_arguments
  42 ) {
  43   // interpreter specific
  44   //
  45   // Note: No need to save/restore bcp & locals (rsi & rdi) pointer
  46   //       since these are callee saved registers and no blocking/




   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "interp_masm_x86_32.hpp"
  27 #include "interpreter/interpreter.hpp"
  28 #include "interpreter/interpreterRuntime.hpp"
  29 #include "oops/arrayOop.hpp"
  30 #include "oops/markOop.hpp"
  31 #include "oops/methodDataOop.hpp"
  32 #include "oops/methodOop.hpp"
  33 #include "prims/jvmtiExport.hpp"
  34 #include "prims/jvmtiRedefineClassesTrace.hpp"
  35 #include "prims/jvmtiThreadState.hpp"
  36 #include "runtime/biasedLocking.hpp"
  37 #include "runtime/sharedRuntime.hpp"
  38 #include "runtime/synchronizer.hpp"
  39 #ifdef TARGET_OS_FAMILY_linux
  40 # include "thread_linux.inline.hpp"
  41 #endif
  42 #ifdef TARGET_OS_FAMILY_solaris
  43 # include "thread_solaris.inline.hpp"
  44 #endif
  45 #ifdef TARGET_OS_FAMILY_windows
  46 # include "thread_windows.inline.hpp"
  47 #endif
  48 
  49 
  50 // Implementation of InterpreterMacroAssembler
  51 #ifdef CC_INTERP
  52 void InterpreterMacroAssembler::get_method(Register reg) {
  53   movptr(reg, Address(rbp, -(sizeof(BytecodeInterpreter) + 2 * wordSize)));
  54   movptr(reg, Address(reg, byte_offset_of(BytecodeInterpreter, _method)));
  55 }
  56 #endif // CC_INTERP
  57 
  58 
  59 #ifndef CC_INTERP
  60 void InterpreterMacroAssembler::call_VM_leaf_base(
  61   address entry_point,
  62   int     number_of_arguments
  63 ) {
  64   // interpreter specific
  65   //
  66   // Note: No need to save/restore bcp & locals (rsi & rdi) pointer
  67   //       since these are callee saved registers and no blocking/