Lines Matching refs:this

2 // Use of this source code is governed by a BSD-style license that can be
95 * IsEmpty() will return true after this call.
114 return Local<T>::New(isolate, *this);
119 return internal::HandleHelper::EqualHandles(*this, that);
124 return internal::HandleHelper::EqualHandles(*this, that);
138 * Install a finalization callback on this object.
145 * called in this callback. In case additional work involving V8 needs to be
155 * Turns this handle into a weak phantom handle without finalization callback.
164 // TODO(dcarney): remove this.
184 * Returns the class ID previously assigned to this handle or 0 if no class ID
309 return *this;
314 return *this;
320 * can result in a memory leak, it is recommended to always set this flag.
323 if (M::kResetInDestructor) this->Reset();
326 // TODO(dcarney): this is pretty useless, fix or remove
338 // TODO(dcarney): this is pretty useless, fix or remove
341 return Persistent<S, M2>::Cast(*this);
400 V8_INLINE ~Global() { this->Reset(); }
411 Global Pass() { return static_cast<Global&&>(*this); }
452 this->Reset();
454 this->slot() = api_internal::CopyGlobalReference(that.slot());
455 M::Copy(that, this);
461 if (this->IsEmpty()) return false;
462 return I::GetNodeState(this->slot()) == I::kNodeStateIsWeakValue;
467 if (this->IsEmpty()) return;
468 api_internal::DisposeGlobal(this->slot());
469 this->Clear();
482 this->slot() = New(isolate, *other);
496 this->slot() = New(isolate, other.template value<S>());
509 api_internal::MakeWeak(this->slot(), parameter,
518 api_internal::MakeWeak(&this->slot());
524 return reinterpret_cast<P*>(api_internal::ClearWeak(this->slot()));
529 api_internal::AnnotateStrongRetainer(this->slot(), label);
535 if (this->IsEmpty()) return;
543 if (this->IsEmpty()) return 0;
551 api_internal::MoveGlobalReference(&other.slot(), &this->slot());
560 if (this != &rhs) {
561 this->Reset();
563 this->slot() = rhs.slot();
564 api_internal::MoveGlobalReference(&rhs.slot(), &this->slot());
568 return *this;