< prev index next >

src/hotspot/share/gc/shared/c2/barrierSetC2.hpp

Print this page
rev 52415 : 8213371: GC/C2 abstraction and cleanup to handle custom offset for GC memory accesses


 207   // Support for GC barriers emitted during parsing
 208   virtual bool has_load_barriers() const { return false; }
 209   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 210   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 211 
 212   // Support for macro expanded GC barriers
 213   virtual void register_potential_barrier_node(Node* node) const { }
 214   virtual void unregister_potential_barrier_node(Node* node) const { }
 215   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 216   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const {}
 217   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const {}
 218   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 219 
 220   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 221   // This could for example comprise macro nodes to be expanded during macro expansion.
 222   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 223   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 224   // expanded later, then now is the time to do so.
 225   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
 226   virtual void verify_gc_barriers(bool post_parse) const {}





 227 };
 228 
 229 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP


 207   // Support for GC barriers emitted during parsing
 208   virtual bool has_load_barriers() const { return false; }
 209   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 210   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 211 
 212   // Support for macro expanded GC barriers
 213   virtual void register_potential_barrier_node(Node* node) const { }
 214   virtual void unregister_potential_barrier_node(Node* node) const { }
 215   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 216   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const {}
 217   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const {}
 218   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 219 
 220   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 221   // This could for example comprise macro nodes to be expanded during macro expansion.
 222   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 223   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 224   // expanded later, then now is the time to do so.
 225   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
 226   virtual void verify_gc_barriers(bool post_parse) const {}
 227 
 228   virtual bool flatten_gc_alias_type(const TypePtr*& adr_type) const { return false; }
 229 #ifdef ASSERT
 230   virtual bool verify_gc_alias_type(const TypePtr* adr_type, int offset) const { return false; }
 231 #endif
 232 };
 233 
 234 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP
< prev index next >