< prev index next >

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

Print this page

256   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
257 
258   // Support for GC barriers emitted during parsing
259   virtual bool has_load_barrier_nodes() const { return false; }
260   virtual bool is_gc_barrier_node(Node* node) const { return false; }
261   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
262 
263   // Support for macro expanded GC barriers
264   virtual void register_potential_barrier_node(Node* node) const { }
265   virtual void unregister_potential_barrier_node(Node* node) const { }
266   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
267   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const {}
268   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const {}
269 
270   // Allow barrier sets to have shared state that is preserved across a compilation unit.
271   // This could for example comprise macro nodes to be expanded during macro expansion.
272   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
273   // If the BarrierSetC2 state has barrier nodes in its compilation
274   // unit state to be expanded later, then now is the time to do so.
275   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const { return false; }

276   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const { return false; }
277   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return false; }
278   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return false; }
279 
280   enum CompilePhase {
281     BeforeOptimize,
282     BeforeMacroExpand,
283     BeforeCodeGen
284   };
285 
286 #ifdef ASSERT
287   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const {}
288 #endif
289 
290   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const { return false; }
291 
292   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const { return false; }
293   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const { return false; }
294   virtual bool escape_has_out_with_unsafe_object(Node* n) const { return false; }
295 

256   virtual void clone_at_expansion(PhaseMacroExpand* phase, ArrayCopyNode* ac) const;
257 
258   // Support for GC barriers emitted during parsing
259   virtual bool has_load_barrier_nodes() const { return false; }
260   virtual bool is_gc_barrier_node(Node* node) const { return false; }
261   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
262 
263   // Support for macro expanded GC barriers
264   virtual void register_potential_barrier_node(Node* node) const { }
265   virtual void unregister_potential_barrier_node(Node* node) const { }
266   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
267   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const {}
268   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const {}
269 
270   // Allow barrier sets to have shared state that is preserved across a compilation unit.
271   // This could for example comprise macro nodes to be expanded during macro expansion.
272   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
273   // If the BarrierSetC2 state has barrier nodes in its compilation
274   // unit state to be expanded later, then now is the time to do so.
275   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const { return false; }
276   virtual bool process_barrier_node(Node* cast_node, PhaseIterGVN& igvn) const { return false; }
277   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const { return false; }
278   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return false; }
279   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return false; }
280 
281   enum CompilePhase {
282     BeforeOptimize,
283     BeforeMacroExpand,
284     BeforeCodeGen
285   };
286 
287 #ifdef ASSERT
288   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const {}
289 #endif
290 
291   virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const { return false; }
292 
293   virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const { return false; }
294   virtual bool escape_add_final_edges(ConnectionGraph* conn_graph, PhaseGVN* gvn, Node* n, uint opcode) const { return false; }
295   virtual bool escape_has_out_with_unsafe_object(Node* n) const { return false; }
296 
< prev index next >