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











  27 
  28 
  29 #if defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER < 1600))
  30 // Windows AMD64 Compiler Hangs compiling this file
  31 // unless optimization is off
  32 #ifdef _M_AMD64
  33 #pragma optimize ("", off)
  34 #endif
  35 #endif
  36 
  37 
  38 bool            Bytecodes::_is_initialized = false;
  39 const char*     Bytecodes::_name          [Bytecodes::number_of_codes];
  40 BasicType       Bytecodes::_result_type   [Bytecodes::number_of_codes];
  41 s_char          Bytecodes::_depth         [Bytecodes::number_of_codes];
  42 u_char          Bytecodes::_lengths       [Bytecodes::number_of_codes];
  43 Bytecodes::Code Bytecodes::_java_code     [Bytecodes::number_of_codes];
  44 u_short         Bytecodes::_flags         [(1<<BitsPerByte)*2];
  45 
  46 




   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 "interpreter/bytecodes.hpp"
  27 #include "memory/resourceArea.hpp"
  28 #include "oops/methodOop.hpp"
  29 #ifdef TARGET_ARCH_x86
  30 # include "bytes_x86.hpp"
  31 #endif
  32 #ifdef TARGET_ARCH_sparc
  33 # include "bytes_sparc.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_zero
  36 # include "bytes_zero.hpp"
  37 #endif
  38 
  39 
  40 #if defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER < 1600))
  41 // Windows AMD64 Compiler Hangs compiling this file
  42 // unless optimization is off
  43 #ifdef _M_AMD64
  44 #pragma optimize ("", off)
  45 #endif
  46 #endif
  47 
  48 
  49 bool            Bytecodes::_is_initialized = false;
  50 const char*     Bytecodes::_name          [Bytecodes::number_of_codes];
  51 BasicType       Bytecodes::_result_type   [Bytecodes::number_of_codes];
  52 s_char          Bytecodes::_depth         [Bytecodes::number_of_codes];
  53 u_char          Bytecodes::_lengths       [Bytecodes::number_of_codes];
  54 Bytecodes::Code Bytecodes::_java_code     [Bytecodes::number_of_codes];
  55 u_short         Bytecodes::_flags         [(1<<BitsPerByte)*2];
  56 
  57