Path: blob/master/src/hotspot/cpu/aarch64/gc/z/zBarrierSetAssembler_aarch64.hpp
41153 views
/*1* Copyright (c) 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_AARCH64_GC_Z_ZBARRIERSETASSEMBLER_AARCH64_HPP24#define CPU_AARCH64_GC_Z_ZBARRIERSETASSEMBLER_AARCH64_HPP2526#include "code/vmreg.hpp"27#include "oops/accessDecorators.hpp"28#ifdef COMPILER229#include "opto/optoreg.hpp"30#endif // COMPILER23132#ifdef COMPILER133class LIR_Assembler;34class LIR_OprDesc;35typedef LIR_OprDesc* LIR_Opr;36class StubAssembler;37class ZLoadBarrierStubC1;38#endif // COMPILER13940#ifdef COMPILER241class Node;42class ZLoadBarrierStubC2;43#endif // COMPILER24445class ZBarrierSetAssembler : public ZBarrierSetAssemblerBase {46public:47virtual void load_at(MacroAssembler* masm,48DecoratorSet decorators,49BasicType type,50Register dst,51Address src,52Register tmp1,53Register tmp_thread);5455#ifdef ASSERT56virtual void store_at(MacroAssembler* masm,57DecoratorSet decorators,58BasicType type,59Address dst,60Register val,61Register tmp1,62Register tmp2);63#endif // ASSERT6465virtual void arraycopy_prologue(MacroAssembler* masm,66DecoratorSet decorators,67bool is_oop,68Register src,69Register dst,70Register count,71RegSet saved_regs);7273virtual void try_resolve_jobject_in_native(MacroAssembler* masm,74Register jni_env,75Register robj,76Register tmp,77Label& slowpath);7879#ifdef COMPILER180void generate_c1_load_barrier_test(LIR_Assembler* ce,81LIR_Opr ref) const;8283void generate_c1_load_barrier_stub(LIR_Assembler* ce,84ZLoadBarrierStubC1* stub) const;8586void generate_c1_load_barrier_runtime_stub(StubAssembler* sasm,87DecoratorSet decorators) const;88#endif // COMPILER18990#ifdef COMPILER291OptoReg::Name refine_register(const Node* node,92OptoReg::Name opto_reg);9394void generate_c2_load_barrier_stub(MacroAssembler* masm,95ZLoadBarrierStubC2* stub) const;96#endif // COMPILER297};9899#endif // CPU_AARCH64_GC_Z_ZBARRIERSETASSEMBLER_AARCH64_HPP100101102