Path: blob/master/src/hotspot/cpu/x86/gc/z/zBarrierSetAssembler_x86.hpp
41153 views
/*1* Copyright (c) 2018, 2019, 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*/2223#ifndef CPU_X86_GC_Z_ZBARRIERSETASSEMBLER_X86_HPP24#define CPU_X86_GC_Z_ZBARRIERSETASSEMBLER_X86_HPP2526#include "code/vmreg.hpp"27#include "oops/accessDecorators.hpp"28#ifdef COMPILER229#include "opto/optoreg.hpp"30#endif // COMPILER23132class MacroAssembler;3334#ifdef COMPILER135class LIR_Assembler;36class LIR_OprDesc;37typedef LIR_OprDesc* LIR_Opr;38class StubAssembler;39class ZLoadBarrierStubC1;40#endif // COMPILER14142#ifdef COMPILER243class Node;44class ZLoadBarrierStubC2;45#endif // COMPILER24647class ZBarrierSetAssembler : public ZBarrierSetAssemblerBase {48public:49virtual void load_at(MacroAssembler* masm,50DecoratorSet decorators,51BasicType type,52Register dst,53Address src,54Register tmp1,55Register tmp_thread);5657#ifdef ASSERT58virtual void store_at(MacroAssembler* masm,59DecoratorSet decorators,60BasicType type,61Address dst,62Register src,63Register tmp1,64Register tmp2);65#endif // ASSERT6667virtual void arraycopy_prologue(MacroAssembler* masm,68DecoratorSet decorators,69BasicType type,70Register src,71Register dst,72Register count);7374virtual void try_resolve_jobject_in_native(MacroAssembler* masm,75Register jni_env,76Register obj,77Register tmp,78Label& slowpath);7980#ifdef COMPILER181void generate_c1_load_barrier_test(LIR_Assembler* ce,82LIR_Opr ref) const;8384void generate_c1_load_barrier_stub(LIR_Assembler* ce,85ZLoadBarrierStubC1* stub) const;8687void generate_c1_load_barrier_runtime_stub(StubAssembler* sasm,88DecoratorSet decorators) const;89#endif // COMPILER19091#ifdef COMPILER292OptoReg::Name refine_register(const Node* node,93OptoReg::Name opto_reg);9495void generate_c2_load_barrier_stub(MacroAssembler* masm,96ZLoadBarrierStubC2* stub) const;97#endif // COMPILER298};99100#endif // CPU_X86_GC_Z_ZBARRIERSETASSEMBLER_X86_HPP101102103