0N/A/*
1879N/A * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP
1879N/A#define CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP
1879N/A
0N/A private:
0N/A
0N/A Address::ScaleFactor array_element_size(BasicType type) const;
0N/A
0N/A void arith_fpu_implementation(LIR_Code code, int left_index, int right_index, int dest_index, bool pop_fpu_stack);
0N/A
0N/A // helper functions which checks for overflow and sets bailout if it
0N/A // occurs. Always returns a valid embeddable pointer but in the
0N/A // bailout case the pointer won't be to unique storage.
0N/A address float_constant(float f);
0N/A address double_constant(double d);
0N/A
304N/A bool is_literal_address(LIR_Address* addr);
304N/A
304N/A // When we need to use something other than rscratch1 use this
304N/A // method.
304N/A Address as_Address(LIR_Address* addr, Register tmp);
304N/A
1703N/A // Record the type of the receiver in ReceiverTypeData
1703N/A void type_profile_helper(Register mdo,
1703N/A ciMethodData *md, ciProfileData *data,
1703N/A Register recv, Label* update_done);
0N/Apublic:
0N/A
0N/A void store_parameter(Register r, int offset_from_esp_in_words);
0N/A void store_parameter(jint c, int offset_from_esp_in_words);
0N/A void store_parameter(jobject c, int offset_from_esp_in_words);
0N/A
304N/A enum { call_stub_size = NOT_LP64(15) LP64_ONLY(28),
0N/A exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),
304N/A deopt_handler_size = NOT_LP64(10) LP64_ONLY(17)
0N/A };
1879N/A
1879N/A#endif // CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP