< prev index next >

src/hotspot/share/gc/z/c2/zBarrierSetC2.hpp

Print this page




 178                                                 Node* new_val,
 179                                                 const Type* value_type) const;
 180   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access,
 181                                         Node* new_val,
 182                                         const Type* val_type) const;
 183 
 184 public:
 185   Node* load_barrier(GraphKit* kit,
 186                      Node* val,
 187                      Node* adr,
 188                      bool weak = false,
 189                      bool writeback = true,
 190                      bool oop_reload_allowed = true) const;
 191 
 192   virtual void* create_barrier_state(Arena* comp_arena) const;
 193   virtual bool has_load_barriers() const { return true; }
 194   virtual bool is_gc_barrier_node(Node* node) const;
 195   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 196   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
 197   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 198   virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const;
 199   virtual void register_potential_barrier_node(Node* node) const;
 200   virtual void unregister_potential_barrier_node(Node* node) const;
 201   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return true; }
 202   virtual Node* step_over_gc_barrier(Node* c) const;
 203   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 204   // expanded later, then now is the time to do so.
 205   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 206 
 207   static void find_dominating_barriers(PhaseIterGVN& igvn);
 208   static void loop_optimize_gc_barrier(PhaseIdealLoop* phase, Node* node, bool last_round);
 209 
 210 #ifdef ASSERT
 211   virtual void verify_gc_barriers(bool post_parse) const;
 212 #endif
 213 };
 214 
 215 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP


 178                                                 Node* new_val,
 179                                                 const Type* value_type) const;
 180   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access,
 181                                         Node* new_val,
 182                                         const Type* val_type) const;
 183 
 184 public:
 185   Node* load_barrier(GraphKit* kit,
 186                      Node* val,
 187                      Node* adr,
 188                      bool weak = false,
 189                      bool writeback = true,
 190                      bool oop_reload_allowed = true) const;
 191 
 192   virtual void* create_barrier_state(Arena* comp_arena) const;
 193   virtual bool has_load_barriers() const { return true; }
 194   virtual bool is_gc_barrier_node(Node* node) const;
 195   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 196   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
 197   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 198   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 199   virtual void register_potential_barrier_node(Node* node) const;
 200   virtual void unregister_potential_barrier_node(Node* node) const;
 201   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return true; }
 202   virtual Node* step_over_gc_barrier(Node* c) const;
 203   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 204   // expanded later, then now is the time to do so.
 205   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 206 
 207   static void find_dominating_barriers(PhaseIterGVN& igvn);
 208   static void loop_optimize_gc_barrier(PhaseIdealLoop* phase, Node* node, bool last_round);
 209 
 210 #ifdef ASSERT
 211   virtual void verify_gc_barriers(bool post_parse) const;
 212 #endif
 213 };
 214 
 215 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP
< prev index next >