annotate src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.hpp @ 50409:4745598b307f

8200235: Generalize jniFastGetField jobject/jweak resolve Reviewed-by: kbarrett, dholmes
author eosterlund
date Thu, 26 Apr 2018 11:56:24 +0200
parents 6a880e576856
children f38329fe8055
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
eosterlund@50409 47 // Support for jniFastGetField to try resolving a jobject/jweak in native
eosterlund@50409 48 virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register robj, Register tmp, Label& slowpath);
eosterlund@50409 49
eosterlund@50243 50 virtual void barrier_stubs_init() {}
eosterlund@49949 51 };
eosterlund@49949 52
shade@50224 53 #endif // CPU_X86_GC_SHARED_BARRIERSETASSEMBLER_X86_HPP