77 // Helper for unsafe accesses, that may or may not be on the referent field.
78 // Generates the guards that check whether the result of
79 // Unsafe.getReference should be recorded in an SATB log buffer.
80 void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset, Node* pre_val, bool need_mem_bar) const;
81
82 static const TypeFunc* write_ref_field_pre_entry_Type();
83 static const TypeFunc* write_ref_field_post_entry_Type();
84
85 virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
86
87 #ifdef ASSERT
88 bool has_cas_in_use_chain(Node* x) const;
89 void verify_pre_load(Node* marking_check_if, Unique_Node_List& loads /*output*/) const;
90 void verify_no_safepoints(Compile* compile, Node* marking_load, const Unique_Node_List& loads) const;
91 #endif
92
93 static bool is_g1_pre_val_load(Node* n);
94 public:
95 virtual bool is_gc_pre_barrier_node(Node* node) const;
96 virtual bool is_gc_barrier_node(Node* node) const;
97 virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
98 virtual Node* step_over_gc_barrier(Node* c) const;
99
100 #ifdef ASSERT
101 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
102 #endif
103
104 virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
105 };
106
107 #endif // SHARE_GC_G1_C2_G1BARRIERSETC2_HPP
|
77 // Helper for unsafe accesses, that may or may not be on the referent field.
78 // Generates the guards that check whether the result of
79 // Unsafe.getReference should be recorded in an SATB log buffer.
80 void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset, Node* pre_val, bool need_mem_bar) const;
81
82 static const TypeFunc* write_ref_field_pre_entry_Type();
83 static const TypeFunc* write_ref_field_post_entry_Type();
84
85 virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
86
87 #ifdef ASSERT
88 bool has_cas_in_use_chain(Node* x) const;
89 void verify_pre_load(Node* marking_check_if, Unique_Node_List& loads /*output*/) const;
90 void verify_no_safepoints(Compile* compile, Node* marking_load, const Unique_Node_List& loads) const;
91 #endif
92
93 static bool is_g1_pre_val_load(Node* n);
94 public:
95 virtual bool is_gc_pre_barrier_node(Node* node) const;
96 virtual bool is_gc_barrier_node(Node* node) const;
97 virtual void eliminate_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
98 virtual Node* step_over_gc_barrier(Node* c) const;
99
100 #ifdef ASSERT
101 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
102 #endif
103
104 virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
105 };
106
107 #endif // SHARE_GC_G1_C2_G1BARRIERSETC2_HPP
|