@@ -644,7 +644,7 @@ bool ConnectionGraph::can_reduce_phi(PhiNode* ophi) const {
644644//
645645// 'curr_ctrl' is the control of the CastPP that we want to split through phi.
646646// If the CastPP currently doesn't have a control then the CmpP/N will be
647- // against the NULL constant, otherwise it will be against the constant input of
647+ // against the null constant, otherwise it will be against the constant input of
648648// the existing CmpP/N. It's guaranteed that there will be a CmpP/N in the later
649649// case because we have constraints on it and because the CastPP has a control
650650// input.
@@ -672,7 +672,7 @@ Node* ConnectionGraph::specialize_cmp(Node* base, Node* curr_ctrl) {
672672// means that the CastPP now will be specific for a given base instead of a Phi.
673673// An If-Then-Else-Region block is inserted to control the CastPP. The control
674674// of the CastPP is a copy of the current one (if there is one) or a check
675- // against NULL .
675+ // against null .
676676//
677677// Before:
678678//
@@ -806,10 +806,10 @@ Node* ConnectionGraph::split_castpp_load_through_phi(Node* curr_addp, Node* curr
806806// After splitting the CastPP we'll put it under an If-Then-Else-Region control
807807// flow. If the CastPP originally had an IfTrue/False control input then we'll
808808// use a similar CmpP/N to control the new If-Then-Else-Region. Otherwise, we'll
809- // juse use a CmpP/N against the NULL constant.
809+ // juse use a CmpP/N against the null constant.
810810//
811811// The If-Then-Else-Region isn't always needed. For instance, if input to
812- // splitted cast was not nullable (or if it was the NULL constant) then we don't
812+ // splitted cast was not nullable (or if it was the null constant) then we don't
813813// need (shouldn't) use a CastPP at all.
814814//
815815// After the casts are splitted we'll split the AddP->Loads through the Phi and
@@ -837,7 +837,7 @@ Node* ConnectionGraph::split_castpp_load_through_phi(Node* curr_addp, Node* curr
837837//
838838// After (Very much simplified):
839839//
840- // Call NULL
840+ // Call Null
841841// \ /
842842// CmpP
843843// |
@@ -873,7 +873,7 @@ void ConnectionGraph::reduce_phi_on_castpp_field_load(Node* curr_castpp, Growabl
873873 // array, depending on the nullability status of the corresponding input in
874874 // ophi.
875875 //
876- // - nullptr: Meaning that the base is actually the NULL constant and therefore
876+ // - nullptr: Meaning that the base is actually the null constant and therefore
877877 // we won't try to load from it.
878878 //
879879 // - CFG Node: Meaning that the base is a CastPP that was specialized for
@@ -890,7 +890,7 @@ void ConnectionGraph::reduce_phi_on_castpp_field_load(Node* curr_castpp, Growabl
890890
891891 if (base_t ->maybe_null ()) {
892892 if (base->is_Con ()) {
893- // Nothing todo as bases_for_loads[i] is already nullptr
893+ // Nothing todo as bases_for_loads[i] is already null
894894 } else {
895895 Node* new_castpp = specialize_castpp (curr_castpp, base, ophi->in (0 )->in (i));
896896 bases_for_loads.at_put (i, new_castpp->in (0 )); // Use the ctrl of the new node just as a flag
0 commit comments