< prev index next >

src/hotspot/cpu/aarch64/gc/shared/modRefBarrierSetAssembler_aarch64.hpp

Print this page




  23  */
  24 
  25 #ifndef CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP
  26 #define CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP
  27 
  28 #include "asm/macroAssembler.hpp"
  29 #include "gc/shared/barrierSetAssembler.hpp"
  30 
  31 // The ModRefBarrierSetAssembler filters away accesses on BasicTypes other
  32 // than T_OBJECT/T_ARRAY (oops). The oop accesses call one of the protected
  33 // accesses, which are overridden in the concrete BarrierSetAssembler.
  34 
  35 class ModRefBarrierSetAssembler: public BarrierSetAssembler {
  36 protected:
  37   virtual void gen_write_ref_array_pre_barrier(MacroAssembler* masm, DecoratorSet decorators,
  38                                                Register addr, Register count, RegSet saved_regs) {}
  39   virtual void gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators,
  40                                                 Register start, Register count, Register tmp, RegSet saved_regs) {}
  41 
  42   virtual void oop_store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
  43                             Address dst, Register val, Register tmp1, Register tmp2) = 0;
  44 
  45 public:
  46   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
  47                                   Register src, Register dst, Register count, RegSet saved_regs);
  48   virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
  49                                   Register start, Register count, Register tmp, RegSet saved_regs);
  50   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
  51                         Address dst, Register val, Register tmp1, Register tmp2);
  52 };
  53 
  54 #endif // CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP


  23  */
  24 
  25 #ifndef CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP
  26 #define CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP
  27 
  28 #include "asm/macroAssembler.hpp"
  29 #include "gc/shared/barrierSetAssembler.hpp"
  30 
  31 // The ModRefBarrierSetAssembler filters away accesses on BasicTypes other
  32 // than T_OBJECT/T_ARRAY (oops). The oop accesses call one of the protected
  33 // accesses, which are overridden in the concrete BarrierSetAssembler.
  34 
  35 class ModRefBarrierSetAssembler: public BarrierSetAssembler {
  36 protected:
  37   virtual void gen_write_ref_array_pre_barrier(MacroAssembler* masm, DecoratorSet decorators,
  38                                                Register addr, Register count, RegSet saved_regs) {}
  39   virtual void gen_write_ref_array_post_barrier(MacroAssembler* masm, DecoratorSet decorators,
  40                                                 Register start, Register count, Register tmp, RegSet saved_regs) {}
  41 
  42   virtual void oop_store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
  43                             Address dst, Register val, Register tmp1, Register tmp2, Register tmp3) = 0;
  44 
  45 public:
  46   virtual void arraycopy_prologue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
  47                                   Register src, Register dst, Register count, RegSet saved_regs);
  48   virtual void arraycopy_epilogue(MacroAssembler* masm, DecoratorSet decorators, bool is_oop,
  49                                   Register start, Register count, Register tmp, RegSet saved_regs);
  50   virtual void store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type,
  51                         Address dst, Register val, Register tmp1, Register tmp2, Register tmp3);
  52 };
  53 
  54 #endif // CPU_AARCH64_GC_SHARED_MODREFBARRIERSETASSEMBLER_AARCH64_HPP
< prev index next >