87
88 public:
89 static ShenandoahBarrierSetC2* bsc2();
90
91 static bool is_shenandoah_wb_pre_call(Node* call);
92 static bool is_shenandoah_wb_call(Node* call);
93 static bool is_shenandoah_marking_if(PhaseTransform *phase, Node* n);
94 static bool is_shenandoah_state_load(Node* n);
95 static bool has_only_shenandoah_wb_pre_uses(Node* n);
96
97 ShenandoahBarrierSetC2State* state() const;
98
99 static const TypeFunc* write_ref_field_pre_entry_Type();
100 static const TypeFunc* shenandoah_clone_barrier_Type();
101 static const TypeFunc* shenandoah_write_barrier_Type();
102
103 // This is the entry-point for the backend to perform accesses through the Access API.
104 virtual Node* store_at(C2Access& access, C2AccessValue& val) const;
105 virtual Node* load_at(C2Access& access, const Type* val_type) const;
106
107 virtual Node* atomic_cmpxchg_val_at(C2AtomicAccess& access, Node* expected_val,
108 Node* new_val, const Type* val_type) const;
109 virtual Node* atomic_cmpxchg_bool_at(C2AtomicAccess& access, Node* expected_val,
110 Node* new_val, const Type* val_type) const;
111 virtual Node* atomic_xchg_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
112 virtual Node* atomic_add_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
113
114 virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
115
116 virtual Node* resolve_for_read(GraphKit* kit, Node* n) const;
117 virtual Node* resolve_for_write(GraphKit* kit, Node* n) const;
118
119 // These are general helper methods used by C2
120 virtual bool array_copy_requires_gc_barriers(BasicType type) const;
121
122 // Support for GC barriers emitted during parsing
123 virtual bool is_gc_barrier_node(Node* node) const;
124 virtual Node* step_over_gc_barrier(Node* c) const;
125
126 // Support for macro expanded GC barriers
127 virtual void register_potential_barrier_node(Node* node) const;
128 virtual void unregister_potential_barrier_node(Node* node) const;
129 virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
130 virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const;
131 virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
|
87
88 public:
89 static ShenandoahBarrierSetC2* bsc2();
90
91 static bool is_shenandoah_wb_pre_call(Node* call);
92 static bool is_shenandoah_wb_call(Node* call);
93 static bool is_shenandoah_marking_if(PhaseTransform *phase, Node* n);
94 static bool is_shenandoah_state_load(Node* n);
95 static bool has_only_shenandoah_wb_pre_uses(Node* n);
96
97 ShenandoahBarrierSetC2State* state() const;
98
99 static const TypeFunc* write_ref_field_pre_entry_Type();
100 static const TypeFunc* shenandoah_clone_barrier_Type();
101 static const TypeFunc* shenandoah_write_barrier_Type();
102
103 // This is the entry-point for the backend to perform accesses through the Access API.
104 virtual Node* store_at(C2Access& access, C2AccessValue& val) const;
105 virtual Node* load_at(C2Access& access, const Type* val_type) const;
106
107 virtual Node* atomic_add_at(C2AtomicAccess& access, Node* new_val, const Type* value_type) const;
108
109 virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
110
111 virtual Node* resolve_for_read(GraphKit* kit, Node* n) const;
112 virtual Node* resolve_for_write(GraphKit* kit, Node* n) const;
113
114 // These are general helper methods used by C2
115 virtual bool array_copy_requires_gc_barriers(BasicType type) const;
116
117 // Support for GC barriers emitted during parsing
118 virtual bool is_gc_barrier_node(Node* node) const;
119 virtual Node* step_over_gc_barrier(Node* c) const;
120
121 // Support for macro expanded GC barriers
122 virtual void register_potential_barrier_node(Node* node) const;
123 virtual void unregister_potential_barrier_node(Node* node) const;
124 virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
125 virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const;
126 virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
|