Path: blob/master/src/hotspot/cpu/aarch64/gc/shared/barrierSetAssembler_aarch64.hpp
41155 views
/*1* Copyright (c) 2018, 2020, 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_AARCH64_GC_SHARED_BARRIERSETASSEMBLER_AARCH64_HPP25#define CPU_AARCH64_GC_SHARED_BARRIERSETASSEMBLER_AARCH64_HPP2627#include "asm/macroAssembler.hpp"28#include "gc/shared/barrierSet.hpp"29#include "gc/shared/barrierSetNMethod.hpp"30#include "memory/allocation.hpp"31#include "oops/access.hpp"3233class BarrierSetAssembler: public CHeapObj<mtGC> {34private:35void incr_allocated_bytes(MacroAssembler* masm,36Register var_size_in_bytes, int con_size_in_bytes,37Register t1 = noreg);3839public:40virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,41Register src, Register dst, Register count, RegSet saved_regs) {}42virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,43Register start, Register end, Register tmp, RegSet saved_regs) {}44virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,45Register dst, Address src, Register tmp1, Register tmp_thread);46virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,47Address dst, Register val, Register tmp1, Register tmp2);4849virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,50Register obj, Register tmp, Label& slowpath);5152virtual void tlab_allocate(MacroAssembler* masm,53Register obj, // result: pointer to object after successful allocation54Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise55int con_size_in_bytes, // object size in bytes if known at compile time56Register t1, // temp register57Register t2, // temp register58Label& slow_case // continuation point if fast allocation fails59);6061void eden_allocate(MacroAssembler* masm,62Register obj, // result: pointer to object after successful allocation63Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise64int con_size_in_bytes, // object size in bytes if known at compile time65Register t1, // temp register66Label& slow_case // continuation point if fast allocation fails67);68virtual void barrier_stubs_init() {}6970virtual void nmethod_entry_barrier(MacroAssembler* masm);71virtual void c2i_entry_barrier(MacroAssembler* masm);7273};7475#endif // CPU_AARCH64_GC_SHARED_BARRIERSETASSEMBLER_AARCH64_HPP767778