< 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);
 98   static bool is_shenandoah_state_load(Node* n);
 99   static bool has_only_shenandoah_wb_pre_uses(Node* n);
100 
101   ShenandoahBarrierSetC2State* state() const;
102 
103   static const TypeFunc* write_ref_field_pre_entry_Type();
104   static const TypeFunc* shenandoah_clone_barrier_Type();
105   static const TypeFunc* shenandoah_load_reference_barrier_Type();
106   virtual bool has_load_barrier_nodes() const { return true; }
107 
108   // This is the entry-point for the backend to perform accesses through the Access API.
109   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
110 
111   // These are general helper methods used by C2
112   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, bool is_clone_instance, ArrayCopyPhase phase) const;
113 
114   // Support for GC barriers emitted during parsing
115   virtual bool is_gc_pre_barrier_node(Node* node) const;

 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_clone_call(Node* call);
109   static bool is_shenandoah_lrb_call(Node* call);
110   static bool is_shenandoah_marking_if(PhaseValues* phase, Node* n);
111   static bool is_shenandoah_state_load(Node* n);
112   static bool has_only_shenandoah_wb_pre_uses(Node* n);
113 
114   ShenandoahBarrierSetC2State* state() const;
115 
116   static const TypeFunc* write_ref_field_pre_entry_Type();
117   static const TypeFunc* shenandoah_clone_barrier_Type();
118   static const TypeFunc* shenandoah_load_reference_barrier_Type();
119   virtual bool has_load_barrier_nodes() const { return true; }
120 
121   // This is the entry-point for the backend to perform accesses through the Access API.
122   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
123 
124   // These are general helper methods used by C2
125   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, bool is_clone_instance, ArrayCopyPhase phase) const;
126 
127   // Support for GC barriers emitted during parsing
128   virtual bool is_gc_pre_barrier_node(Node* node) const;
< prev index next >