1 /*
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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 *
178 void mem2reg (LIR_Opr src, LIR_Opr dest, BasicType type,
179 LIR_PatchCode patch_code,
180 CodeEmitInfo* info, bool wide, bool unaligned);
181
182 void prefetchr (LIR_Opr src);
183 void prefetchw (LIR_Opr src);
184
185 void shift_op(LIR_Code code, LIR_Opr left, LIR_Opr count, LIR_Opr dest, LIR_Opr tmp);
186 void shift_op(LIR_Code code, LIR_Opr left, jint count, LIR_Opr dest);
187
188 void move_regs(Register from_reg, Register to_reg);
189 void swap_reg(Register a, Register b);
190
191 void emit_op0(LIR_Op0* op);
192 void emit_op1(LIR_Op1* op);
193 void emit_op2(LIR_Op2* op);
194 void emit_op3(LIR_Op3* op);
195 void emit_opBranch(LIR_OpBranch* op);
196 void emit_opLabel(LIR_OpLabel* op);
197 void emit_arraycopy(LIR_OpArrayCopy* op);
198 void emit_opConvert(LIR_OpConvert* op);
199 void emit_alloc_obj(LIR_OpAllocObj* op);
200 void emit_alloc_array(LIR_OpAllocArray* op);
201 void emit_opTypeCheck(LIR_OpTypeCheck* op);
202 void emit_typecheck_helper(LIR_OpTypeCheck *op, Label* success, Label* failure, Label* obj_is_null);
203 void emit_compare_and_swap(LIR_OpCompareAndSwap* op);
204 void emit_lock(LIR_OpLock* op);
205 void emit_call(LIR_OpJavaCall* op);
206 void emit_rtcall(LIR_OpRTCall* op);
207 void emit_profile_call(LIR_OpProfileCall* op);
208 void emit_delay(LIR_OpDelay* op);
209
210 void arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr dest, CodeEmitInfo* info, bool pop_fpu_stack);
211 void arithmetic_idiv(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr temp, LIR_Opr result, CodeEmitInfo* info);
212 void intrinsic_op(LIR_Code code, LIR_Opr value, LIR_Opr unused, LIR_Opr dest, LIR_Op* op);
213 #ifdef ASSERT
214 void emit_assert(LIR_OpAssert* op);
215 #endif
216
217 void logic_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr dest);
|
1 /*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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 *
178 void mem2reg (LIR_Opr src, LIR_Opr dest, BasicType type,
179 LIR_PatchCode patch_code,
180 CodeEmitInfo* info, bool wide, bool unaligned);
181
182 void prefetchr (LIR_Opr src);
183 void prefetchw (LIR_Opr src);
184
185 void shift_op(LIR_Code code, LIR_Opr left, LIR_Opr count, LIR_Opr dest, LIR_Opr tmp);
186 void shift_op(LIR_Code code, LIR_Opr left, jint count, LIR_Opr dest);
187
188 void move_regs(Register from_reg, Register to_reg);
189 void swap_reg(Register a, Register b);
190
191 void emit_op0(LIR_Op0* op);
192 void emit_op1(LIR_Op1* op);
193 void emit_op2(LIR_Op2* op);
194 void emit_op3(LIR_Op3* op);
195 void emit_opBranch(LIR_OpBranch* op);
196 void emit_opLabel(LIR_OpLabel* op);
197 void emit_arraycopy(LIR_OpArrayCopy* op);
198 void emit_updatecrc32(LIR_OpUpdateCRC32* op);
199 void emit_opConvert(LIR_OpConvert* op);
200 void emit_alloc_obj(LIR_OpAllocObj* op);
201 void emit_alloc_array(LIR_OpAllocArray* op);
202 void emit_opTypeCheck(LIR_OpTypeCheck* op);
203 void emit_typecheck_helper(LIR_OpTypeCheck *op, Label* success, Label* failure, Label* obj_is_null);
204 void emit_compare_and_swap(LIR_OpCompareAndSwap* op);
205 void emit_lock(LIR_OpLock* op);
206 void emit_call(LIR_OpJavaCall* op);
207 void emit_rtcall(LIR_OpRTCall* op);
208 void emit_profile_call(LIR_OpProfileCall* op);
209 void emit_delay(LIR_OpDelay* op);
210
211 void arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr dest, CodeEmitInfo* info, bool pop_fpu_stack);
212 void arithmetic_idiv(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr temp, LIR_Opr result, CodeEmitInfo* info);
213 void intrinsic_op(LIR_Code code, LIR_Opr value, LIR_Opr unused, LIR_Opr dest, LIR_Op* op);
214 #ifdef ASSERT
215 void emit_assert(LIR_OpAssert* op);
216 #endif
217
218 void logic_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr dest);
|