< prev index next >

src/hotspot/cpu/ppc/gc/shenandoah/shenandoahBarrierSetAssembler_ppc.hpp

Print this page

 34 
 35 class LIR_Assembler;
 36 class ShenandoahPreBarrierStub;
 37 class ShenandoahLoadReferenceBarrierStub;
 38 class StubAssembler;
 39 
 40 #endif
 41 
 42 class StubCodeGenerator;
 43 
 44 class ShenandoahBarrierSetAssembler: public BarrierSetAssembler {
 45 private:
 46 
 47   /* ==== Actual barrier implementations ==== */
 48   void satb_write_barrier_impl(MacroAssembler* masm, DecoratorSet decorators,
 49                                Register base, RegisterOrConstant ind_or_offs,
 50                                Register pre_val,
 51                                Register tmp1, Register tmp2,
 52                                MacroAssembler::PreservationLevel preservation_level);
 53 




 54   void load_reference_barrier_impl(MacroAssembler* masm, DecoratorSet decorators,
 55                                    Register base, RegisterOrConstant ind_or_offs,
 56                                    Register dst,
 57                                    Register tmp1, Register tmp2,
 58                                    MacroAssembler::PreservationLevel preservation_level);
 59 
 60   /* ==== Helper methods for barrier implementations ==== */
 61   void resolve_forward_pointer_not_null(MacroAssembler* masm, Register dst, Register tmp);
 62 




 63 public:
 64 
 65   /* ==== C1 stubs ==== */
 66 #ifdef COMPILER1
 67 
 68   void gen_pre_barrier_stub(LIR_Assembler* ce, ShenandoahPreBarrierStub* stub);
 69 
 70   void gen_load_reference_barrier_stub(LIR_Assembler* ce, ShenandoahLoadReferenceBarrierStub* stub);
 71 
 72   void generate_c1_pre_barrier_runtime_stub(StubAssembler* sasm);
 73 
 74   void generate_c1_load_reference_barrier_runtime_stub(StubAssembler* sasm, DecoratorSet decorators);
 75 
 76 #endif
 77 
 78   /* ==== Available barriers (facades of the actual implementations) ==== */
 79   void satb_write_barrier(MacroAssembler* masm,
 80                           Register base, RegisterOrConstant ind_or_offs,
 81                           Register tmp1, Register tmp2, Register tmp3,
 82                           MacroAssembler::PreservationLevel preservation_level);
 83 
 84   void iu_barrier(MacroAssembler* masm,
 85                         Register val,
 86                         Register tmp1, Register tmp2,
 87                         MacroAssembler::PreservationLevel preservation_level, DecoratorSet decorators = 0);
 88 
 89   void load_reference_barrier(MacroAssembler* masm, DecoratorSet decorators,
 90                               Register base, RegisterOrConstant ind_or_offs,
 91                               Register dst,
 92                               Register tmp1, Register tmp2,
 93                               MacroAssembler::PreservationLevel preservation_level);
 94 
 95   /* ==== Helper methods used by C1 and C2 ==== */
 96   void cmpxchg_oop(MacroAssembler* masm, Register base_addr, Register expected, Register new_val,
 97                    Register tmp1, Register tmp2,
 98                    bool is_cae, Register result);
 99 
100   /* ==== Access api ==== */
101   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
102                           Register src, Register dst, Register count, Register preserve1, Register preserve2);




103 
104   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
105                         Register base, RegisterOrConstant ind_or_offs, Register val,
106                         Register tmp1, Register tmp2, Register tmp3,
107                         MacroAssembler::PreservationLevel preservation_level);
108 
109   virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
110                        Register base, RegisterOrConstant ind_or_offs, Register dst,
111                        Register tmp1, Register tmp2,
112                        MacroAssembler::PreservationLevel preservation_level, Label* L_handle_null = NULL);
113 
114   virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register dst, Register jni_env,
115                                              Register obj, Register tmp, Label& slowpath);
116 };
117 
118 #endif // CPU_PPC_GC_SHENANDOAH_SHENANDOAHBARRIERSETASSEMBLER_PPC_HPP

 34 
 35 class LIR_Assembler;
 36 class ShenandoahPreBarrierStub;
 37 class ShenandoahLoadReferenceBarrierStub;
 38 class StubAssembler;
 39 
 40 #endif
 41 
 42 class StubCodeGenerator;
 43 
 44 class ShenandoahBarrierSetAssembler: public BarrierSetAssembler {
 45 private:
 46 
 47   /* ==== Actual barrier implementations ==== */
 48   void satb_write_barrier_impl(MacroAssembler* masm, DecoratorSet decorators,
 49                                Register base, RegisterOrConstant ind_or_offs,
 50                                Register pre_val,
 51                                Register tmp1, Register tmp2,
 52                                MacroAssembler::PreservationLevel preservation_level);
 53 
 54   void store_check(MacroAssembler* masm,
 55                    Register base, RegisterOrConstant ind_or_offs,
 56                    Register tmp);
 57 
 58   void load_reference_barrier_impl(MacroAssembler* masm, DecoratorSet decorators,
 59                                    Register base, RegisterOrConstant ind_or_offs,
 60                                    Register dst,
 61                                    Register tmp1, Register tmp2,
 62                                    MacroAssembler::PreservationLevel preservation_level);
 63 
 64   /* ==== Helper methods for barrier implementations ==== */
 65   void resolve_forward_pointer_not_null(MacroAssembler* masm, Register dst, Register tmp);
 66 
 67   void gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators,
 68                                         Register addr, Register count,
 69                                         Register preserve);
 70 
 71 public:
 72 
 73   /* ==== C1 stubs ==== */
 74 #ifdef COMPILER1
 75 
 76   void gen_pre_barrier_stub(LIR_Assembler* ce, ShenandoahPreBarrierStub* stub);
 77 
 78   void gen_load_reference_barrier_stub(LIR_Assembler* ce, ShenandoahLoadReferenceBarrierStub* stub);
 79 
 80   void generate_c1_pre_barrier_runtime_stub(StubAssembler* sasm);
 81 
 82   void generate_c1_load_reference_barrier_runtime_stub(StubAssembler* sasm, DecoratorSet decorators);
 83 
 84 #endif
 85 
 86   /* ==== Available barriers (facades of the actual implementations) ==== */
 87   void satb_write_barrier(MacroAssembler* masm,
 88                           Register base, RegisterOrConstant ind_or_offs,
 89                           Register tmp1, Register tmp2, Register tmp3,
 90                           MacroAssembler::PreservationLevel preservation_level);
 91 
 92   void iu_barrier(MacroAssembler* masm,
 93                         Register val,
 94                         Register tmp1, Register tmp2,
 95                         MacroAssembler::PreservationLevel preservation_level, DecoratorSet decorators = 0);
 96 
 97   void load_reference_barrier(MacroAssembler* masm, DecoratorSet decorators,
 98                               Register base, RegisterOrConstant ind_or_offs,
 99                               Register dst,
100                               Register tmp1, Register tmp2,
101                               MacroAssembler::PreservationLevel preservation_level);
102 
103   /* ==== Helper methods used by C1 and C2 ==== */
104   void cmpxchg_oop(MacroAssembler* masm, Register base_addr, Register expected, Register new_val,
105                    Register tmp1, Register tmp2,
106                    bool is_cae, Register result);
107 
108   /* ==== Access api ==== */
109   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
110                                   Register src, Register dst, Register count,
111                                   Register preserve1, Register preserve2);
112   virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
113                                   Register dst, Register count,
114                                   Register preserve);
115 
116   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
117                         Register base, RegisterOrConstant ind_or_offs, Register val,
118                         Register tmp1, Register tmp2, Register tmp3,
119                         MacroAssembler::PreservationLevel preservation_level);
120 
121   virtual void load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
122                        Register base, RegisterOrConstant ind_or_offs, Register dst,
123                        Register tmp1, Register tmp2,
124                        MacroAssembler::PreservationLevel preservation_level, Label* L_handle_null = NULL);
125 
126   virtual void try_resolve_jobject_in_native(MacroAssembler* masm, Register dst, Register jni_env,
127                                              Register obj, Register tmp, Label& slowpath);
128 };
129 
130 #endif // CPU_PPC_GC_SHENANDOAH_SHENANDOAHBARRIERSETASSEMBLER_PPC_HPP
< prev index next >