271 virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
272
273 // Allow barrier sets to have shared state that is preserved across a compilation unit.
274 // This could for example comprise macro nodes to be expanded during macro expansion.
275 virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
276 // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
277 // expanded later, then now is the time to do so.
278 virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
279
280 enum CompilePhase {
281 BeforeOptimize, /* post_parse = true */
282 BeforeExpand, /* post_parse = false */
283 BeforeCodeGen
284 };
285 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const {}
286
287 virtual bool flatten_gc_alias_type(const TypePtr*& adr_type) const { return false; }
288 #ifdef ASSERT
289 virtual bool verify_gc_alias_type(const TypePtr* adr_type, int offset) const { return false; }
290 #endif
291 };
292
293 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP
|
271 virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
272
273 // Allow barrier sets to have shared state that is preserved across a compilation unit.
274 // This could for example comprise macro nodes to be expanded during macro expansion.
275 virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
276 // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
277 // expanded later, then now is the time to do so.
278 virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const { return false; }
279
280 enum CompilePhase {
281 BeforeOptimize, /* post_parse = true */
282 BeforeExpand, /* post_parse = false */
283 BeforeCodeGen
284 };
285 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const {}
286
287 virtual bool flatten_gc_alias_type(const TypePtr*& adr_type) const { return false; }
288 #ifdef ASSERT
289 virtual bool verify_gc_alias_type(const TypePtr* adr_type, int offset) const { return false; }
290 #endif
291
292 virtual bool final_graph_reshaping(Compile* compile, Node* n, uint opcode) const { return false; }
293
294 };
295
296 #endif // SHARE_GC_SHARED_C2_BARRIERSETC2_HPP
|