< prev index next >

src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.hpp

Print this page

 58                               Node* obj,
 59                               Node* adr,
 60                               uint alias_idx,
 61                               Node* val,
 62                               const TypeOopPtr* val_type,
 63                               Node* pre_val,
 64                               BasicType bt) const;
 65 
 66   void shenandoah_write_barrier_pre(GraphKit* kit,
 67                                     bool do_load,
 68                                     Node* obj,
 69                                     Node* adr,
 70                                     uint alias_idx,
 71                                     Node* val,
 72                                     const TypeOopPtr* val_type,
 73                                     Node* pre_val,
 74                                     BasicType bt) const;
 75 
 76   Node* shenandoah_iu_barrier(GraphKit* kit, Node* obj) const;
 77 












 78   void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset,
 79                           Node* pre_val, bool need_mem_bar) const;
 80 
 81   static bool clone_needs_barrier(Node* src, PhaseGVN& gvn);
 82 
 83 protected:
 84   virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
 85   virtual Node* store_at_resolved(C2Access& access, C2AccessValue& val) const;
 86   virtual Node* atomic_cmpxchg_val_at_resolved(C2AtomicParseAccess& access, Node* expected_val,
 87                                                Node* new_val, const Type* val_type) const;
 88   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicParseAccess& access, Node* expected_val,
 89                                                 Node* new_val, const Type* value_type) const;
 90   virtual Node* atomic_xchg_at_resolved(C2AtomicParseAccess& access, Node* new_val, const Type* val_type) const;
 91 
 92 public:
 93   static ShenandoahBarrierSetC2* bsc2();
 94 
 95   static bool is_shenandoah_wb_pre_call(Node* call);
 96   static bool is_shenandoah_lrb_call(Node* call);
 97   static bool is_shenandoah_marking_if(PhaseValues* phase, Node* n);

 58                               Node* obj,
 59                               Node* adr,
 60                               uint alias_idx,
 61                               Node* val,
 62                               const TypeOopPtr* val_type,
 63                               Node* pre_val,
 64                               BasicType bt) const;
 65 
 66   void shenandoah_write_barrier_pre(GraphKit* kit,
 67                                     bool do_load,
 68                                     Node* obj,
 69                                     Node* adr,
 70                                     uint alias_idx,
 71                                     Node* val,
 72                                     const TypeOopPtr* val_type,
 73                                     Node* pre_val,
 74                                     BasicType bt) const;
 75 
 76   Node* shenandoah_iu_barrier(GraphKit* kit, Node* obj) const;
 77 
 78   Node* byte_map_base_node(GraphKit* kit) const;
 79 
 80   void post_barrier(GraphKit* kit,
 81                     Node* ctl,
 82                     Node* store,
 83                     Node* obj,
 84                     Node* adr,
 85                     uint adr_idx,
 86                     Node* val,
 87                     BasicType bt,
 88                     bool use_precise) const;
 89 
 90   void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset,
 91                           Node* pre_val, bool need_mem_bar) const;
 92 
 93   static bool clone_needs_barrier(Node* src, PhaseGVN& gvn);
 94 
 95 protected:
 96   virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
 97   virtual Node* store_at_resolved(C2Access& access, C2AccessValue& val) const;
 98   virtual Node* atomic_cmpxchg_val_at_resolved(C2AtomicParseAccess& access, Node* expected_val,
 99                                                Node* new_val, const Type* val_type) const;
100   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicParseAccess& access, Node* expected_val,
101                                                 Node* new_val, const Type* value_type) const;
102   virtual Node* atomic_xchg_at_resolved(C2AtomicParseAccess& access, Node* new_val, const Type* val_type) const;
103 
104 public:
105   static ShenandoahBarrierSetC2* bsc2();
106 
107   static bool is_shenandoah_wb_pre_call(Node* call);
108   static bool is_shenandoah_lrb_call(Node* call);
109   static bool is_shenandoah_marking_if(PhaseValues* phase, Node* n);
< prev index next >