196 Node*& fast_oop_ctrl, Node*& fast_oop_rawmem, 197 intx prefetch_lines) const; 198 199 // These are general helper methods used by C2 200 enum ArrayCopyPhase { 201 Parsing, 202 Optimization, 203 Expansion 204 }; 205 virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const { return false; } 206 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(Unique_Node_List &worklist, Node* node) const {} 217 virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) 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 | 196 Node*& fast_oop_ctrl, Node*& fast_oop_rawmem, 197 intx prefetch_lines) const; 198 199 // These are general helper methods used by C2 200 enum ArrayCopyPhase { 201 Parsing, 202 Optimization, 203 Expansion 204 }; 205 virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const { return false; } 206 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 |