Path: blob/master/src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.hpp
41155 views
/*1* Copyright (c) 2018, 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_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP25#define CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP2627#include "asm/macroAssembler.hpp"28#include "memory/allocation.hpp"29#include "oops/access.hpp"3031class InterpreterMacroAssembler;3233class BarrierSetAssembler: public CHeapObj<mtGC> {34private:35void incr_allocated_bytes(MacroAssembler* masm, Register thread,36Register var_size_in_bytes,37int con_size_in_bytes,38Register t1);3940public:41virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,42Register src, Register dst, Register count) {}43virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,44Register src, Register dst, Register count) {}4546virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,47Register dst, Address src, Register tmp1, Register tmp_thread);48virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,49Address dst, Register val, Register tmp1, Register tmp2);5051// Support for jniFastGetField to try resolving a jobject/jweak in native52virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,53Register obj, Register tmp, Label& slowpath);5455virtual void tlab_allocate(MacroAssembler* masm,56Register thread, Register obj,57Register var_size_in_bytes,58int con_size_in_bytes,59Register t1, Register t2,60Label& slow_case);61virtual void eden_allocate(MacroAssembler* masm,62Register thread, Register obj,63Register var_size_in_bytes,64int con_size_in_bytes,65Register t1,66Label& slow_case);6768virtual void barrier_stubs_init() {}6970virtual void nmethod_entry_barrier(MacroAssembler* masm);71virtual void c2i_entry_barrier(MacroAssembler* masm);72};7374#endif // CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP757677