< prev index next >

src/hotspot/cpu/x86/c2_MacroAssembler_x86.hpp

Print this page

 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 #ifndef CPU_X86_C2_MACROASSEMBLER_X86_HPP
 26 #define CPU_X86_C2_MACROASSEMBLER_X86_HPP
 27 
 28 // C2_MacroAssembler contains high-level macros for C2
 29 
 30 public:
 31   // C2 compiled method's prolog code.
 32   void verified_entry(int framesize, int stack_bang_size, bool fp_mode_24b, bool is_stub);
 33 

 34   Assembler::AvxVectorLen vector_length_encoding(int vlen_in_bytes);
 35 
 36   // Code used by cmpFastLock and cmpFastUnlock mach instructions in .ad file.
 37   // See full description in c2_MacroAssembler_x86.cpp.
 38   void fast_lock_lightweight(Register obj, Register box, Register rax_reg,
 39                              Register t, Register thread);
 40   void fast_unlock_lightweight(Register obj, Register reg_rax, Register t, Register thread);
 41 
 42   void verify_int_in_range(uint idx, const TypeInt* t, Register val);
 43   void verify_long_in_range(uint idx, const TypeLong* t, Register val, Register tmp);
 44 
 45   // Generic instructions support for use in .ad files C2 code generation
 46   void vabsnegd(int opcode, XMMRegister dst, XMMRegister src);
 47   void vabsnegd(int opcode, XMMRegister dst, XMMRegister src, int vector_len);
 48   void vabsnegf(int opcode, XMMRegister dst, XMMRegister src);
 49   void vabsnegf(int opcode, XMMRegister dst, XMMRegister src, int vector_len);
 50 
 51   void pminmax(int opcode, BasicType elem_bt, XMMRegister dst, XMMRegister src,
 52                XMMRegister tmp = xnoreg);
 53   void vpminmax(int opcode, BasicType elem_bt,

 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 #ifndef CPU_X86_C2_MACROASSEMBLER_X86_HPP
 26 #define CPU_X86_C2_MACROASSEMBLER_X86_HPP
 27 
 28 // C2_MacroAssembler contains high-level macros for C2
 29 
 30 public:
 31   // C2 compiled method's prolog code.
 32   void verified_entry(Compile* C, int sp_inc = 0);
 33 
 34   void entry_barrier();
 35   Assembler::AvxVectorLen vector_length_encoding(int vlen_in_bytes);
 36 
 37   // Code used by cmpFastLock and cmpFastUnlock mach instructions in .ad file.
 38   // See full description in c2_MacroAssembler_x86.cpp.
 39   void fast_lock_lightweight(Register obj, Register box, Register rax_reg,
 40                              Register t, Register thread);
 41   void fast_unlock_lightweight(Register obj, Register reg_rax, Register t, Register thread);
 42 
 43   void verify_int_in_range(uint idx, const TypeInt* t, Register val);
 44   void verify_long_in_range(uint idx, const TypeLong* t, Register val, Register tmp);
 45 
 46   // Generic instructions support for use in .ad files C2 code generation
 47   void vabsnegd(int opcode, XMMRegister dst, XMMRegister src);
 48   void vabsnegd(int opcode, XMMRegister dst, XMMRegister src, int vector_len);
 49   void vabsnegf(int opcode, XMMRegister dst, XMMRegister src);
 50   void vabsnegf(int opcode, XMMRegister dst, XMMRegister src, int vector_len);
 51 
 52   void pminmax(int opcode, BasicType elem_bt, XMMRegister dst, XMMRegister src,
 53                XMMRegister tmp = xnoreg);
 54   void vpminmax(int opcode, BasicType elem_bt,
< prev index next >