< prev index next >

src/hotspot/cpu/aarch64/gc/shenandoah/shenandoahBarrierSetAssembler_aarch64.hpp

Print this page

38 
39 class ShenandoahBarrierSetAssembler: public BarrierSetAssembler {
40 private:
41 
42   void satb_write_barrier_pre(MacroAssembler* masm,
43                               Register obj,
44                               Register pre_val,
45                               Register thread,
46                               Register tmp1,
47                               Register tmp2,
48                               bool tosca_live,
49                               bool expand_call);
50   void shenandoah_write_barrier_pre(MacroAssembler* masm,
51                                     Register obj,
52                                     Register pre_val,
53                                     Register thread,
54                                     Register tmp,
55                                     bool tosca_live,
56                                     bool expand_call);
57 


58   void resolve_forward_pointer(MacroAssembler* masm, Register dst, Register tmp = noreg);
59   void resolve_forward_pointer_not_null(MacroAssembler* masm, Register dst, Register tmp = noreg);
60   void load_reference_barrier(MacroAssembler* masm, Register dst, Address load_addr, DecoratorSet decorators);
61 


62 public:
63 
64   void iu_barrier(MacroAssembler* masm, Register dst, Register tmp);
65 
66   virtual NMethodPatchingType nmethod_patching_type() { return NMethodPatchingType::conc_data_patch; }
67 
68 #ifdef COMPILER1
69   void gen_pre_barrier_stub(LIR_Assembler* ce, ShenandoahPreBarrierStub* stub);
70   void gen_load_reference_barrier_stub(LIR_Assembler* ce, ShenandoahLoadReferenceBarrierStub* stub);
71   void generate_c1_pre_barrier_runtime_stub(StubAssembler* sasm);
72   void generate_c1_load_reference_barrier_runtime_stub(StubAssembler* sasm, DecoratorSet decorators);
73 #endif
74 
75   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
76                                   Register src, Register dst, Register count, RegSet saved_regs);


77   virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
78                        Register dst, Address src, Register tmp1, Register tmp2);
79   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
80                         Address dst, Register val, Register tmp1, Register tmp2, Register tmp3);
81   virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,
82                                              Register obj, Register tmp, Label& slowpath);
83   void cmpxchg_oop(MacroAssembler* masm, Register addr, Register expected, Register new_val,
84                    bool acquire, bool release, bool is_cae, Register result);
85 };
86 
87 #endif // CPU_AARCH64_GC_SHENANDOAH_SHENANDOAHBARRIERSETASSEMBLER_AARCH64_HPP

38 
39 class ShenandoahBarrierSetAssembler: public BarrierSetAssembler {
40 private:
41 
42   void satb_write_barrier_pre(MacroAssembler* masm,
43                               Register obj,
44                               Register pre_val,
45                               Register thread,
46                               Register tmp1,
47                               Register tmp2,
48                               bool tosca_live,
49                               bool expand_call);
50   void shenandoah_write_barrier_pre(MacroAssembler* masm,
51                                     Register obj,
52                                     Register pre_val,
53                                     Register thread,
54                                     Register tmp,
55                                     bool tosca_live,
56                                     bool expand_call);
57 
58   void store_check(MacroAssembler* masm, Register obj);
59 
60   void resolve_forward_pointer(MacroAssembler* masm, Register dst, Register tmp = noreg);
61   void resolve_forward_pointer_not_null(MacroAssembler* masm, Register dst, Register tmp = noreg);
62   void load_reference_barrier(MacroAssembler* masm, Register dst, Address load_addr, DecoratorSet decorators);
63 
64   void gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators, Register start, Register count, Register scratch, RegSet saved_regs);
65 
66 public:
67 
68   void iu_barrier(MacroAssembler* masm, Register dst, Register tmp);
69 
70   virtual NMethodPatchingType nmethod_patching_type() { return NMethodPatchingType::conc_data_patch; }
71 
72 #ifdef COMPILER1
73   void gen_pre_barrier_stub(LIR_Assembler* ce, ShenandoahPreBarrierStub* stub);
74   void gen_load_reference_barrier_stub(LIR_Assembler* ce, ShenandoahLoadReferenceBarrierStub* stub);
75   void generate_c1_pre_barrier_runtime_stub(StubAssembler* sasm);
76   void generate_c1_load_reference_barrier_runtime_stub(StubAssembler* sasm, DecoratorSet decorators);
77 #endif
78 
79   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
80                                   Register src, Register dst, Register count, RegSet saved_regs);
81   virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
82                                   Register start, Register count, Register tmp, RegSet saved_regs);
83   virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
84                        Register dst, Address src, Register tmp1, Register tmp2);
85   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
86                         Address dst, Register val, Register tmp1, Register tmp2, Register tmp3);
87   virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register jni_env,
88                                              Register obj, Register tmp, Label& slowpath);
89   void cmpxchg_oop(MacroAssembler* masm, Register addr, Register expected, Register new_val,
90                    bool acquire, bool release, bool is_cae, Register result);
91 };
92 
93 #endif // CPU_AARCH64_GC_SHENANDOAH_SHENANDOAHBARRIERSETASSEMBLER_AARCH64_HPP
< prev index next >