Lines Matching defs:that

2 // Use of this source code is governed by a BSD-style license that can be
43 * Eternal handles are set-once handles that live for the lifetime of the
78 * An object reference that is independent of any handle scope. Where
118 V8_INLINE bool operator==(const PersistentBase<S>& that) const {
119 return internal::HandleHelper::EqualHandles(*this, that);
123 V8_INLINE bool operator==(const Local<S>& that) const {
124 return internal::HandleHelper::EqualHandles(*this, that);
128 V8_INLINE bool operator!=(const PersistentBase<S>& that) const {
129 return !operator==(that);
133 V8_INLINE bool operator!=(const Local<S>& that) const {
134 return !operator==(that);
157 * that the object is no longer reachable.
170 * The function does not take ownership of the label and assumes that the
217 V8_INLINE static internal::Address* New(Isolate* isolate, T* that);
223 * At present kResetInDestructor is not set, but that will change in a future
276 V8_INLINE Persistent(Isolate* isolate, Local<S> that)
278 PersistentBase<T>::New(isolate, that.template value<S>())) {
288 V8_INLINE Persistent(Isolate* isolate, const Persistent<S, M2>& that)
290 PersistentBase<T>::New(isolate, that.template value<S>())) {
300 V8_INLINE Persistent(const Persistent& that) : PersistentBase<T>() {
301 Copy(that);
304 V8_INLINE Persistent(const Persistent<S, M2>& that) : PersistentBase<T>() {
305 Copy(that);
307 V8_INLINE Persistent& operator=(const Persistent& that) {
308 Copy(that);
312 V8_INLINE Persistent& operator=(const Persistent<S, M2>& that) {
313 Copy(that);
328 V8_INLINE static Persistent<T, M>& Cast(const Persistent<S, M2>& that) {
331 // that the handle isn't empty before doing the checked cast.
332 if (!that.IsEmpty()) T::Cast(that.template value<S>());
335 const_cast<Persistent<S, M2>&>(that));
355 V8_INLINE void Copy(const Persistent<S, M2>& that);
377 V8_INLINE Global(Isolate* isolate, Local<S> that)
379 PersistentBase<T>::New(isolate, that.template value<S>())) {
389 V8_INLINE Global(Isolate* isolate, const PersistentBase<S>& that)
391 PersistentBase<T>::New(isolate, that.template value<S>())) {
441 internal::Address* PersistentBase<T>::New(Isolate* isolate, T* that) {
442 if (internal::ValueHelper::IsEmpty(that)) return nullptr;
445 internal::ValueHelper::ValueAsAddress(that));
450 void Persistent<T, M>::Copy(const Persistent<S, M2>& that) {
453 if (that.IsEmpty()) return;
454 this->slot() = api_internal::CopyGlobalReference(that.slot());
455 M::Copy(that, this);