< prev index next >

src/hotspot/cpu/ppc/c2_MacroAssembler_ppc.hpp

Print this page

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 #ifndef CPU_PPC_C2_MACROASSEMBLER_PPC_HPP
26 #define CPU_PPC_C2_MACROASSEMBLER_PPC_HPP
27 
28 // C2_MacroAssembler contains high-level macros for C2
29 
30  public:






31   // Intrinsics for CompactStrings
32   // Compress char[] to byte[] by compressing 16 bytes at once.
33   void string_compress_16(Register src, Register dst, Register cnt,
34                           Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5,
35                           Label& Lfailure, bool ascii = false);
36 
37   // Compress char[] to byte[]. cnt must be positive int.
38   void string_compress(Register src, Register dst, Register cnt, Register tmp,
39                        Label& Lfailure, bool ascii = false);
40 
41   // Encode UTF16 to ISO_8859_1 or ASCII. Return len on success or position of first mismatch.
42   void encode_iso_array(Register src, Register dst, Register len,
43                         Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5,
44                         Register result, bool ascii);
45 
46   // Inflate byte[] to char[] by inflating 16 bytes at once.
47   void string_inflate_16(Register src, Register dst, Register cnt,
48                          Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5);
49 
50   // Inflate byte[] to char[]. cnt must be positive int.

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 #ifndef CPU_PPC_C2_MACROASSEMBLER_PPC_HPP
26 #define CPU_PPC_C2_MACROASSEMBLER_PPC_HPP
27 
28 // C2_MacroAssembler contains high-level macros for C2
29 
30  public:
31   // Code used by cmpFastLockLightweight and cmpFastUnlockLightweight mach instructions in .ad file.
32   void fast_lock_lightweight(ConditionRegister flag, Register obj, Register box,
33                              Register tmp1, Register tmp2, Register tmp3);
34   void fast_unlock_lightweight(ConditionRegister flag, Register obj, Register box,
35                                Register tmp1, Register tmp2, Register tmp3);
36 
37   // Intrinsics for CompactStrings
38   // Compress char[] to byte[] by compressing 16 bytes at once.
39   void string_compress_16(Register src, Register dst, Register cnt,
40                           Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5,
41                           Label& Lfailure, bool ascii = false);
42 
43   // Compress char[] to byte[]. cnt must be positive int.
44   void string_compress(Register src, Register dst, Register cnt, Register tmp,
45                        Label& Lfailure, bool ascii = false);
46 
47   // Encode UTF16 to ISO_8859_1 or ASCII. Return len on success or position of first mismatch.
48   void encode_iso_array(Register src, Register dst, Register len,
49                         Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5,
50                         Register result, bool ascii);
51 
52   // Inflate byte[] to char[] by inflating 16 bytes at once.
53   void string_inflate_16(Register src, Register dst, Register cnt,
54                          Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register tmp5);
55 
56   // Inflate byte[] to char[]. cnt must be positive int.
< prev index next >