Lines Matching defs:new_child
41 bool DominatorTree::Node::TryAddChild(std::unique_ptr<Node> new_child) {
42 CHECK(new_child->value_) << "cannot add a root or empty node as a child";
43 if (value_ && !Dominates(new_child.get())) {
47 return AddChild(std::move(new_child));
50 bool DominatorTree::Node::AddChild(std::unique_ptr<Node> new_child) {
54 if (new_child->Dominates(child.get())) {
55 child->parent_ = new_child.get();
56 new_child->children_.push_back(std::move(child));
72 if (child->Dominates(new_child.get())) {
73 child->AddChild(std::move(new_child));
78 new_child->parent_ = this;
79 children_.push_back(std::move(new_child));