annotate src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.hpp @ 51149:8434981a4137

8203157: Object equals abstraction for BarrierSetAssembler Reviewed-by: eosterlund, aph
author rkennke
date Wed, 13 Jun 2018 10:01:53 +0200
parents f38329fe8055
children db0a17475826
rev   line source
eosterlund@49949 1 /*
eosterlund@49949 2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
eosterlund@49949 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
eosterlund@49949 4 *
eosterlund@49949 5 * This code is free software; you can redistribute it and/or modify it
eosterlund@49949 6 * under the terms of the GNU General Public License version 2 only, as
eosterlund@49949 7 * published by the Free Software Foundation.
eosterlund@49949 8 *
eosterlund@49949 9 * This code is distributed in the hope that it will be useful, but WITHOUT
eosterlund@49949 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eosterlund@49949 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
eosterlund@49949 12 * version 2 for more details (a copy is included in the LICENSE file that
eosterlund@49949 13 * accompanied this code).
eosterlund@49949 14 *
eosterlund@49949 15 * You should have received a copy of the GNU General Public License version
eosterlund@49949 16 * 2 along with this work; if not, write to the Free Software Foundation,
eosterlund@49949 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
eosterlund@49949 18 *
eosterlund@49949 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eosterlund@49949 20 * or visit www.oracle.com if you need additional information or have any
eosterlund@49949 21 * questions.
eosterlund@49949 22 *
eosterlund@49949 23 */
eosterlund@49949 24
shade@50224 25 #ifndef CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP
shade@50224 26 #define CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP
eosterlund@49949 27
eosterlund@49949 28 #include "asm/macroAssembler.hpp"
eosterlund@49949 29 #include "memory/allocation.hpp"
eosterlund@49949 30 #include "oops/access.hpp"
eosterlund@49949 31
eosterlund@49949 32 class InterpreterMacroAssembler;
eosterlund@49949 33
eosterlund@49949 34 class BarrierSetAssembler: public CHeapObj<mtGC> {
eosterlund@49949 35 protected:
eosterlund@49949 36 public:
eosterlund@49949 37 virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
eosterlund@49949 38 Register src, Register dst, Register count) {}
eosterlund@49949 39 virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
eosterlund@49949 40 Register src, Register dst, Register count) {}
eosterlund@50243 41
eosterlund@50243 42 virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
eosterlund@50243 43 Register dst, Address src, Register tmp1, Register tmp_thread);
eosterlund@50243 44 virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
eosterlund@50243 45 Address dst, Register val, Register tmp1, Register tmp2);
eosterlund@50243 46
rkennke@51149 47 #ifndef _LP64
rkennke@51149 48 virtual void obj_equals(MacroAssembler* masm,
rkennke@51149 49 Address obj1, jobject obj2);
rkennke@51149 50 virtual void obj_equals(MacroAssembler* masm,
rkennke@51149 51 Register obj1, jobject obj2);
rkennke@51149 52 #endif
rkennke@51149 53
rkennke@51149 54 virtual void obj_equals(MacroAssembler* masm,
rkennke@51149 55 Register obj1, Register obj2);
rkennke@51149 56 virtual void obj_equals(MacroAssembler* masm,
rkennke@51149 57 Register obj1, Address obj2);
rkennke@51149 58
eosterlund@50409 59 // Support for jniFastGetField to try resolving a jobject/jweak in native
eosterlund@50454 60 virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,
eosterlund@50454 61 Register obj, Register tmp, Label& slowpath);
eosterlund@50409 62
eosterlund@50243 63 virtual void barrier_stubs_init() {}
eosterlund@49949 64 };
eosterlund@49949 65
shade@50224 66 #endif // CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP