64 PhaseTransform* phase, Node* store,
65 Node* adr) const;
66
67 void g1_mark_card(GraphKit* kit,
68 IdealKit& ideal,
69 Node* card_adr,
70 Node* oop_store,
71 uint oop_alias_idx,
72 Node* index,
73 Node* index_adr,
74 Node* buffer,
75 const TypeFunc* tf) const;
76
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 public:
88 virtual bool is_gc_barrier_node(Node* node) const;
89 virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
90 virtual Node* step_over_gc_barrier(Node* c) const;
91
92 #ifdef ASSERT
93 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
94 #endif
95
96 virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
97 };
98
99 #endif // SHARE_GC_G1_C2_G1BARRIERSETC2_HPP
|
64 PhaseTransform* phase, Node* store,
65 Node* adr) const;
66
67 void g1_mark_card(GraphKit* kit,
68 IdealKit& ideal,
69 Node* card_adr,
70 Node* oop_store,
71 uint oop_alias_idx,
72 Node* index,
73 Node* index_adr,
74 Node* buffer,
75 const TypeFunc* tf) const;
76
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 static const TypeFunc* write_ref_stats_Type();
85
86 virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
87
88 public:
89 virtual bool is_gc_barrier_node(Node* node) const;
90 virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
91 virtual Node* step_over_gc_barrier(Node* c) const;
92
93 #ifdef ASSERT
94 virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
95 #endif
96
97 virtual bool escape_add_to_con_graph(ConnectionGraph* conn_graph, PhaseGVN* gvn, Unique_Node_List* delayed_worklist, Node* n, uint opcode) const;
98 };
99
100 #endif // SHARE_GC_G1_C2_G1BARRIERSETC2_HPP
|