< prev index next >

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

Print this page




 173                                                Node* new_val, const Type* val_type) const;
 174   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicAccess& access, Node* expected_val,
 175                                                 Node* new_val, const Type* value_type) const;
 176   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access, Node* new_val, const Type* val_type) const;
 177   virtual Node* atomic_add_at_resolved(C2AtomicAccess& access, Node* new_val, const Type* val_type) const;
 178 
 179 public:
 180   // This is the entry-point for the backend to perform accesses through the Access API.
 181   virtual Node* store_at(C2Access& access, C2AccessValue& val) const;
 182   virtual Node* load_at(C2Access& access, const Type* val_type) const;
 183 
 184   virtual Node* atomic_cmpxchg_val_at(C2AtomicAccess& access, Node* expected_val,
 185                                       Node* new_val, const Type* val_type) const;
 186   virtual Node* atomic_cmpxchg_bool_at(C2AtomicAccess& access, Node* expected_val,
 187                                        Node* new_val, const Type* val_type) const;
 188   virtual Node* atomic_xchg_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
 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   // These are general helper methods used by C2
 194   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return false; }
 195 
 196   // Support for GC barriers emitted during parsing
 197   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 198   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 199 
 200   // Support for macro expanded GC barriers
 201   virtual void register_potential_barrier_node(Node* node) const { }
 202   virtual void unregister_potential_barrier_node(Node* node) const { }
 203   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 204   virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const {}
 205   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const {}
 206   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 207 
 208   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 209   // This could for example comprise macro nodes to be expanded during macro expansion.
 210   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 211   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 212   // expanded later, then now is the time to do so.


 173                                                Node* new_val, const Type* val_type) const;
 174   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicAccess& access, Node* expected_val,
 175                                                 Node* new_val, const Type* value_type) const;
 176   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access, Node* new_val, const Type* val_type) const;
 177   virtual Node* atomic_add_at_resolved(C2AtomicAccess& access, Node* new_val, const Type* val_type) const;
 178 
 179 public:
 180   // This is the entry-point for the backend to perform accesses through the Access API.
 181   virtual Node* store_at(C2Access& access, C2AccessValue& val) const;
 182   virtual Node* load_at(C2Access& access, const Type* val_type) const;
 183 
 184   virtual Node* atomic_cmpxchg_val_at(C2AtomicAccess& access, Node* expected_val,
 185                                       Node* new_val, const Type* val_type) const;
 186   virtual Node* atomic_cmpxchg_bool_at(C2AtomicAccess& access, Node* expected_val,
 187                                        Node* new_val, const Type* val_type) const;
 188   virtual Node* atomic_xchg_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
 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* resolve_for_read(GraphKit* kit, Node* n) const {
 194     return n;
 195   }
 196 
 197   virtual Node* resolve_for_write(GraphKit* kit, Node* n) const {
 198     return n;
 199   }
 200 
 201   virtual Node* ideal_node(PhaseGVN *phase, Node* n, bool can_reshape) const { return NULL; }
 202 
 203   // These are general helper methods used by C2
 204   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return false; }
 205 
 206   // Support for GC barriers emitted during parsing
 207   virtual bool is_gc_barrier_node(Node* node) const { return false; }
 208   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 209 
 210   // Support for macro expanded GC barriers
 211   virtual void register_potential_barrier_node(Node* node) const { }
 212   virtual void unregister_potential_barrier_node(Node* node) const { }
 213   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 214   virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const {}
 215   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const {}
 216   virtual void add_users_to_worklist(Unique_Node_List* worklist) const {}
 217 
 218   // Allow barrier sets to have shared state that is preserved across a compilation unit.
 219   // This could for example comprise macro nodes to be expanded during macro expansion.
 220   virtual void* create_barrier_state(Arena* comp_arena) const { return NULL; }
 221   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 222   // expanded later, then now is the time to do so.
< prev index next >