Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.hpp
32285 views
/*1* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP25#define CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP2627private:2829Address::ScaleFactor array_element_size(BasicType type) const;3031void arith_fpu_implementation(LIR_Code code, int left_index, int right_index, int dest_index, bool pop_fpu_stack);3233// helper functions which checks for overflow and sets bailout if it34// occurs. Always returns a valid embeddable pointer but in the35// bailout case the pointer won't be to unique storage.36address float_constant(float f);37address double_constant(double d);3839bool is_literal_address(LIR_Address* addr);4041// When we need to use something other than rscratch1 use this42// method.43Address as_Address(LIR_Address* addr, Register tmp);4445// Record the type of the receiver in ReceiverTypeData46void type_profile_helper(Register mdo,47ciMethodData *md, ciProfileData *data,48Register recv, Label* update_done);49public:5051void store_parameter(Register r, int offset_from_esp_in_words);52void store_parameter(jint c, int offset_from_esp_in_words);53void store_parameter(jobject c, int offset_from_esp_in_words);5455enum { call_stub_size = NOT_LP64(15) LP64_ONLY(28),56exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),57deopt_handler_size = NOT_LP64(10) LP64_ONLY(17)58};5960#endif // CPU_X86_VM_C1_LIRASSEMBLER_X86_HPP616263