< prev index next >

src/hotspot/cpu/x86/stubRoutines_x86.hpp

Print this page




  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 #ifndef CPU_X86_VM_STUBROUTINES_X86_HPP
  26 #define CPU_X86_VM_STUBROUTINES_X86_HPP
  27 
  28 // This file holds the platform specific parts of the StubRoutines
  29 // definition. See stubRoutines.hpp for a description on how to
  30 // extend it.
  31 
  32 static bool returns_to_call_stub(address return_pc) { return return_pc == _call_stub_return_address; }
  33 
  34 enum platform_dependent_constants {
  35   code_size1 = 20000 LP64_ONLY(+10000),         // simply increase if too small (assembler will crash if too small)
  36   code_size2 = 33800 LP64_ONLY(+10000)           // simply increase if too small (assembler will crash if too small)
  37 };
  38 
  39 class x86 {
  40  friend class StubGenerator;
  41  friend class VMStructs;
  42 
  43 #ifdef _LP64
  44  private:
  45   static address _get_previous_fp_entry;
  46   static address _get_previous_sp_entry;
  47 
  48   static address _f2i_fixup;
  49   static address _f2l_fixup;
  50   static address _d2i_fixup;
  51   static address _d2l_fixup;
  52 
  53   static address _float_sign_mask;
  54   static address _float_sign_flip;
  55   static address _double_sign_mask;
  56   static address _double_sign_flip;
  57   static address _vector_float_sign_mask;
  58   static address _vector_float_sign_flip;
  59   static address _vector_double_sign_mask;
  60   static address _vector_double_sign_flip;
  61   static address _vector_all_bits_set;
  62   static address _vector_byte_bitset;
  63   static address _vector_long_perm_mask;
  64   static address _vector_short_to_byte_mask;
  65   static address _vector_int_to_byte_mask;
  66   static address _vector_int_to_short_mask;
  67   static address _vector_32_bit_mask;
  68   static address _vector_64_bit_mask;






  69 
  70  public:
  71 
  72   static address get_previous_fp_entry() {
  73     return _get_previous_fp_entry;
  74   }
  75 
  76   static address get_previous_sp_entry() {
  77     return _get_previous_sp_entry;
  78   }
  79 
  80   static address f2i_fixup() {
  81     return _f2i_fixup;
  82   }
  83 
  84   static address f2l_fixup() {
  85     return _f2l_fixup;
  86   }
  87 
  88   static address d2i_fixup() {


 143 
 144   static address vector_int_to_byte_mask() {
 145     return _vector_int_to_byte_mask;
 146   }
 147 
 148   static address vector_int_to_short_mask() {
 149     return _vector_int_to_short_mask;
 150   }
 151 
 152   static address vector_32_bit_mask() {
 153     return _vector_32_bit_mask;
 154   }
 155 
 156   static address vector_64_bit_mask() {
 157     return _vector_64_bit_mask;
 158   }
 159 
 160   static address vector_all_ones_mask() {
 161     return _vector_double_sign_flip;
 162   }
 163 

















 164 #else // !LP64
 165 
 166  private:
 167   static address _verify_fpu_cntrl_wrd_entry;
 168 
 169  public:
 170   static address verify_fpu_cntrl_wrd_entry() { return _verify_fpu_cntrl_wrd_entry; }
 171 
 172 #endif // !LP64
 173 
 174  private:
 175   static address _verify_mxcsr_entry;
 176   // shuffle mask for fixing up 128-bit words consisting of big-endian 32-bit integers
 177   static address _key_shuffle_mask_addr;
 178 
 179   //shuffle mask for big-endian 128-bit integers
 180   static address _counter_shuffle_mask_addr;
 181 
 182   // masks and table for CRC32
 183   static uint64_t _crc_by128_masks[];




  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 #ifndef CPU_X86_VM_STUBROUTINES_X86_HPP
  26 #define CPU_X86_VM_STUBROUTINES_X86_HPP
  27 
  28 // This file holds the platform specific parts of the StubRoutines
  29 // definition. See stubRoutines.hpp for a description on how to
  30 // extend it.
  31 
  32 static bool returns_to_call_stub(address return_pc) { return return_pc == _call_stub_return_address; }
  33 
  34 enum platform_dependent_constants {
  35   code_size1 = 20000 LP64_ONLY(+10000),         // simply increase if too small (assembler will crash if too small)
  36   code_size2 = 35800 LP64_ONLY(+10000)           // simply increase if too small (assembler will crash if too small)
  37 };
  38 
  39 class x86 {
  40  friend class StubGenerator;
  41  friend class VMStructs;
  42 
  43 #ifdef _LP64
  44  private:
  45   static address _get_previous_fp_entry;
  46   static address _get_previous_sp_entry;
  47 
  48   static address _f2i_fixup;
  49   static address _f2l_fixup;
  50   static address _d2i_fixup;
  51   static address _d2l_fixup;
  52 
  53   static address _float_sign_mask;
  54   static address _float_sign_flip;
  55   static address _double_sign_mask;
  56   static address _double_sign_flip;
  57   static address _vector_float_sign_mask;
  58   static address _vector_float_sign_flip;
  59   static address _vector_double_sign_mask;
  60   static address _vector_double_sign_flip;
  61   static address _vector_all_bits_set;
  62   static address _vector_byte_bitset;
  63   static address _vector_long_perm_mask;
  64   static address _vector_short_to_byte_mask;
  65   static address _vector_int_to_byte_mask;
  66   static address _vector_int_to_short_mask;
  67   static address _vector_32_bit_mask;
  68   static address _vector_64_bit_mask;
  69   static address _vector_int_shuffle_mask;
  70   static address _vector_int_size_mask; 
  71   static address _vector_short_shuffle_mask;
  72   static address _vector_short_size_mask;
  73   static address _vector_long_shuffle_mask;
  74   static address _vector_long_size_mask;
  75 
  76  public:
  77 
  78   static address get_previous_fp_entry() {
  79     return _get_previous_fp_entry;
  80   }
  81 
  82   static address get_previous_sp_entry() {
  83     return _get_previous_sp_entry;
  84   }
  85 
  86   static address f2i_fixup() {
  87     return _f2i_fixup;
  88   }
  89 
  90   static address f2l_fixup() {
  91     return _f2l_fixup;
  92   }
  93 
  94   static address d2i_fixup() {


 149 
 150   static address vector_int_to_byte_mask() {
 151     return _vector_int_to_byte_mask;
 152   }
 153 
 154   static address vector_int_to_short_mask() {
 155     return _vector_int_to_short_mask;
 156   }
 157 
 158   static address vector_32_bit_mask() {
 159     return _vector_32_bit_mask;
 160   }
 161 
 162   static address vector_64_bit_mask() {
 163     return _vector_64_bit_mask;
 164   }
 165 
 166   static address vector_all_ones_mask() {
 167     return _vector_double_sign_flip;
 168   }
 169   static address vector_int_shuffle_mask() {
 170     return _vector_int_shuffle_mask;
 171   }
 172   static address vector_int_size_mask() {
 173     return _vector_int_size_mask;
 174   }
 175   static address vector_short_shuffle_mask() {
 176     return _vector_short_shuffle_mask;
 177   }
 178   static address vector_short_size_mask() {
 179     return _vector_short_size_mask;
 180   }
 181   static address vector_long_shuffle_mask() {
 182     return _vector_long_shuffle_mask;
 183   }
 184   static address vector_long_size_mask() {
 185     return _vector_long_size_mask;
 186   }
 187 #else // !LP64
 188 
 189  private:
 190   static address _verify_fpu_cntrl_wrd_entry;
 191 
 192  public:
 193   static address verify_fpu_cntrl_wrd_entry() { return _verify_fpu_cntrl_wrd_entry; }
 194 
 195 #endif // !LP64
 196 
 197  private:
 198   static address _verify_mxcsr_entry;
 199   // shuffle mask for fixing up 128-bit words consisting of big-endian 32-bit integers
 200   static address _key_shuffle_mask_addr;
 201 
 202   //shuffle mask for big-endian 128-bit integers
 203   static address _counter_shuffle_mask_addr;
 204 
 205   // masks and table for CRC32
 206   static uint64_t _crc_by128_masks[];


< prev index next >