Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/jdk17u
Path: blob/master/src/hotspot/cpu/ppc/gc/z/zBarrierSetAssembler_ppc.hpp
66646 views
1
/*
2
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
3
* Copyright (c) 2021 SAP SE. All rights reserved.
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* This code is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License version 2 only, as
8
* published by the Free Software Foundation.
9
*
10
* This code is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* version 2 for more details (a copy is included in the LICENSE file that
14
* accompanied this code).
15
*
16
* You should have received a copy of the GNU General Public License version
17
* 2 along with this work; if not, write to the Free Software Foundation,
18
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
*
20
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21
* or visit www.oracle.com if you need additional information or have any
22
* questions.
23
*/
24
25
#ifndef CPU_PPC_GC_Z_ZBARRIERSETASSEMBLER_PPC_HPP
26
#define CPU_PPC_GC_Z_ZBARRIERSETASSEMBLER_PPC_HPP
27
28
#include "code/vmreg.hpp"
29
#include "oops/accessDecorators.hpp"
30
#ifdef COMPILER2
31
#include "opto/optoreg.hpp"
32
#endif // COMPILER2
33
34
#ifdef COMPILER1
35
class LIR_Assembler;
36
class LIR_OprDesc;
37
typedef LIR_OprDesc* LIR_Opr;
38
class StubAssembler;
39
class ZLoadBarrierStubC1;
40
#endif // COMPILER1
41
42
#ifdef COMPILER2
43
class Node;
44
class ZLoadBarrierStubC2;
45
#endif // COMPILER2
46
47
class ZBarrierSetAssembler : public ZBarrierSetAssemblerBase {
48
public:
49
virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
50
Register base, RegisterOrConstant ind_or_offs, Register dst,
51
Register tmp1, Register tmp2,
52
MacroAssembler::PreservationLevel preservation_level, Label *L_handle_null = NULL);
53
54
#ifdef ASSERT
55
virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
56
Register base, RegisterOrConstant ind_or_offs, Register val,
57
Register tmp1, Register tmp2, Register tmp3,
58
MacroAssembler::PreservationLevel preservation_level);
59
#endif // ASSERT
60
61
virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
62
Register src, Register dst, Register count,
63
Register preserve1, Register preserve2);
64
65
virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register dst, Register jni_env,
66
Register obj, Register tmp, Label& slowpath);
67
68
#ifdef COMPILER1
69
void generate_c1_load_barrier_test(LIR_Assembler* ce,
70
LIR_Opr ref) const;
71
72
void generate_c1_load_barrier_stub(LIR_Assembler* ce,
73
ZLoadBarrierStubC1* stub) const;
74
75
void generate_c1_load_barrier_runtime_stub(StubAssembler* sasm,
76
DecoratorSet decorators) const;
77
#endif // COMPILER1
78
79
#ifdef COMPILER2
80
OptoReg::Name refine_register(const Node* node, OptoReg::Name opto_reg) const;
81
82
void generate_c2_load_barrier_stub(MacroAssembler* masm, ZLoadBarrierStubC2* stub) const;
83
#endif // COMPILER2
84
};
85
86
#endif // CPU_AARCH64_GC_Z_ZBARRIERSETASSEMBLER_AARCH64_HPP
87
88