< prev index next >

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

Print this page




 189   virtual Node* atomic_add_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
 190 
 191   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
 192 
 193   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const { return NULL; }
 194   virtual Node* identity_node(PhaseGVN* phase, Node* n) const { return n; }
 195 
 196   // These are general helper methods used by C2
 197   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return false; }
 198   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
 199 
 200   // Support for GC barriers emitted during parsing
 201   virtual bool has_load_barriers() const { return false; }
 202   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 203   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 204 
 205   // Support for macro expanded GC barriers
 206   virtual void register_potential_barrier_node(Node* node) const { }
 207   virtual void unregister_potential_barrier_node(Node* node) const { }
 208   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 209   virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const {}
 210   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const {}
 211   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 212 
 213   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 214   // This could for example comprise macro nodes to be expanded during macro expansion.
 215   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 216   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 217   // expanded later, then now is the time to do so.
 218   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
 219   virtual void verify_gc_barriers(bool post_parse) const {}
 220 };
 221 
 222 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP


 189   virtual Node* atomic_add_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
 190 
 191   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
 192 
 193   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const { return NULL; }
 194   virtual Node* identity_node(PhaseGVN* phase, Node* n) const { return n; }
 195 
 196   // These are general helper methods used by C2
 197   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return false; }
 198   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
 199 
 200   // Support for GC barriers emitted during parsing
 201   virtual bool has_load_barriers() const { return false; }
 202   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 203   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 204 
 205   // Support for macro expanded GC barriers
 206   virtual void register_potential_barrier_node(Node* node) const { }
 207   virtual void unregister_potential_barrier_node(Node* node) const { }
 208   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 209   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const {}
 210   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const {}
 211   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 212 
 213   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 214   // This could for example comprise macro nodes to be expanded during macro expansion.
 215   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 216   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 217   // expanded later, then now is the time to do so.
 218   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
 219   virtual void verify_gc_barriers(bool post_parse) const {}
 220 };
 221 
 222 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP
< prev index next >