Lines Matching defs:destructor
1876 // destructor gets called after all the other destructors. It is important
1877 // that the destructor sets the thread-in-wasm flag after all other
2941 void Isolate::RegisterManagedPtrDestructor(ManagedPtrDestructor* destructor) {
2943 DCHECK_NULL(destructor->prev_);
2944 DCHECK_NULL(destructor->next_);
2946 managed_ptr_destructors_head_->prev_ = destructor;
2948 destructor->next_ = managed_ptr_destructors_head_;
2949 managed_ptr_destructors_head_ = destructor;
2952 void Isolate::UnregisterManagedPtrDestructor(ManagedPtrDestructor* destructor) {
2954 if (destructor->prev_) {
2955 destructor->prev_->next_ = destructor->next_;
2957 DCHECK_EQ(destructor, managed_ptr_destructors_head_);
2958 managed_ptr_destructors_head_ = destructor->next_;
2960 if (destructor->next_) destructor->next_->prev_ = destructor->prev_;
2961 destructor->prev_ = nullptr;
2962 destructor->next_ = nullptr;
3510 TRACE_ISOLATE(destructor);