< prev index next >

src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.hpp

Print this page




 109   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) 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, ArrayCopyPhase phase) const;
 113   virtual void clone_barrier_at_expansion(ArrayCopyNode* ac, Node* call, PhaseIterGVN& igvn) const;
 114 
 115   // Support for GC barriers emitted during parsing
 116   virtual bool is_gc_barrier_node(Node* node) const;
 117   virtual Node* step_over_gc_barrier(Node* c) const;
 118   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
 119   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
 120   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 121   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 122 
 123   // Support for macro expanded GC barriers
 124   virtual void register_potential_barrier_node(Node* node) const;
 125   virtual void unregister_potential_barrier_node(Node* node) const;
 126   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
 127   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 128   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;

 129 
 130   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 131   // This could for example comprise macro nodes to be expanded during macro expansion.
 132   virtual void* create_barrier_state(Arena* comp_arena) const;
 133   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 134   // expanded later, then now is the time to do so.
 135   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 136 
 137 #ifdef ASSERT
 138   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
 139 #endif
 140 
 141   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const;
 142   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const;
 143 
 144   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
 145   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const;
 146   virtual bool escape_has_out_with_unsafe_object(Node* n) const;

 147 
 148   virtual bool matcher_find_shared_post_visit(Matcher* matcher, Node* n, uint opcode) const;
 149   virtual bool matcher_is_store_load_barrier(Node* x, uint xop) const;
 150 };
 151 
 152 #endif // SHARE_GC_SHENANDOAH_C2_SHENANDOAHBARRIERSETC2_HPP


 109   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) 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, ArrayCopyPhase phase) const;
 113   virtual void clone_barrier_at_expansion(ArrayCopyNode* ac, Node* call, PhaseIterGVN& igvn) const;
 114 
 115   // Support for GC barriers emitted during parsing
 116   virtual bool is_gc_barrier_node(Node* node) const;
 117   virtual Node* step_over_gc_barrier(Node* c) const;
 118   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
 119   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
 120   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 121   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 122 
 123   // Support for macro expanded GC barriers
 124   virtual void register_potential_barrier_node(Node* node) const;
 125   virtual void unregister_potential_barrier_node(Node* node) const;
 126   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
 127   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 128   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;
 129   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 130 
 131   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 132   // This could for example comprise macro nodes to be expanded during macro expansion.
 133   virtual void* create_barrier_state(Arena* comp_arena) const;
 134   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 135   // expanded later, then now is the time to do so.
 136   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 137 
 138 #ifdef ASSERT
 139   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
 140 #endif
 141 
 142   virtual Node* ideal_node(PhaseGVN* phase, Node* n, bool can_reshape) const;
 143   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const;
 144 
 145   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
 146   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const;
 147   virtual bool escape_has_out_with_unsafe_object(Node* n) const;
 148   virtual bool escape_is_barrier_node(Node* n) const;
 149 
 150   virtual bool matcher_find_shared_post_visit(Matcher* matcher, Node* n, uint opcode) const;
 151   virtual bool matcher_is_store_load_barrier(Node* x, uint xop) const;
 152 };
 153 
 154 #endif // SHARE_GC_SHENANDOAH_C2_SHENANDOAHBARRIERSETC2_HPP
< prev index next >