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
97 #endif // SHARE_GC_SHARED_C2_G1BARRIERSETC2_HPP
|
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_SHARED_C2_G1BARRIERSETC2_HPP
|