Lines Matching refs:new_parent
885 void Scope::Snapshot::Reparent(DeclarationScope* new_parent) const { in Reparent()
886 DCHECK_EQ(new_parent, outer_scope_->inner_scope_); in Reparent()
887 DCHECK_EQ(new_parent->outer_scope_, outer_scope_); in Reparent()
888 DCHECK_EQ(new_parent, new_parent->GetClosureScope()); in Reparent()
889 DCHECK_NULL(new_parent->inner_scope_); in Reparent()
890 DCHECK_NULL(new_parent->unresolved_); in Reparent()
891 DCHECK(new_parent->locals_.is_empty()); in Reparent()
892 Scope* inner_scope = new_parent->sibling_; in Reparent()
896 inner_scope->outer_scope_ = new_parent; in Reparent()
898 new_parent->inner_scope_calls_eval_ = true; in Reparent()
900 DCHECK_NE(inner_scope, new_parent); in Reparent()
902 inner_scope->outer_scope_ = new_parent; in Reparent()
904 new_parent->inner_scope_calls_eval_ = true; in Reparent()
906 new_parent->inner_scope_ = new_parent->sibling_; in Reparent()
910 new_parent->sibling_ = top_inner_scope_; in Reparent()
919 new_parent->unresolved_ = outer_scope_->unresolved_; in Reparent()
929 new_parent->locals_.MoveTail(outer_closure->locals(), top_local_); in Reparent()
930 for (Variable* local : new_parent->locals_) { in Reparent()
934 DCHECK_NE(local->scope(), new_parent); in Reparent()
935 local->set_scope(new_parent); in Reparent()
938 new_parent->variables_.Add(new_parent->zone(), local); in Reparent()
946 new_parent->scope_calls_eval_ = true; in Reparent()
947 new_parent->inner_scope_calls_eval_ = true; in Reparent()