src/share/vm/interpreter/interpreter.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/_interpreter.cpp.incl"

















  27 
  28 # define __ _masm->
  29 
  30 
  31 //------------------------------------------------------------------------------------------------------------------------
  32 // Implementation of InterpreterCodelet
  33 
  34 void InterpreterCodelet::initialize(const char* description, Bytecodes::Code bytecode) {
  35   _description       = description;
  36   _bytecode          = bytecode;
  37 }
  38 
  39 
  40 void InterpreterCodelet::verify() {
  41 }
  42 
  43 
  44 void InterpreterCodelet::print_on(outputStream* st) const {
  45   if (PrintInterpreter) {
  46     st->cr();




   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 "asm/assembler.hpp"
  27 #include "interpreter/bytecodeHistogram.hpp"
  28 #include "interpreter/bytecodeInterpreter.hpp"
  29 #include "interpreter/interpreter.hpp"
  30 #include "interpreter/interpreterRuntime.hpp"
  31 #include "interpreter/templateTable.hpp"
  32 #include "memory/allocation.inline.hpp"
  33 #include "memory/resourceArea.hpp"
  34 #include "oops/arrayOop.hpp"
  35 #include "oops/methodDataOop.hpp"
  36 #include "oops/methodOop.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "prims/forte.hpp"
  39 #include "prims/jvmtiExport.hpp"
  40 #include "runtime/handles.inline.hpp"
  41 #include "runtime/sharedRuntime.hpp"
  42 #include "runtime/stubRoutines.hpp"
  43 #include "runtime/timer.hpp"
  44 
  45 # define __ _masm->
  46 
  47 
  48 //------------------------------------------------------------------------------------------------------------------------
  49 // Implementation of InterpreterCodelet
  50 
  51 void InterpreterCodelet::initialize(const char* description, Bytecodes::Code bytecode) {
  52   _description       = description;
  53   _bytecode          = bytecode;
  54 }
  55 
  56 
  57 void InterpreterCodelet::verify() {
  58 }
  59 
  60 
  61 void InterpreterCodelet::print_on(outputStream* st) const {
  62   if (PrintInterpreter) {
  63     st->cr();