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
81 * An object reference that is independent of any handle scope. Where
124 V8_INLINE bool operator==(const PersistentBase<S>& that) const {
126 internal::Address* b = reinterpret_cast<internal::Address*>(that.val_);
133 V8_INLINE bool operator==(const Local<S>& that) const {
135 internal::Address* b = reinterpret_cast<internal::Address*>(that.val_);
142 V8_INLINE bool operator!=(const PersistentBase<S>& that) const {
143 return !operator==(that);
147 V8_INLINE bool operator!=(const Local<S>& that) const {
148 return !operator==(that);
171 * that the object is no longer reachable.
186 * The function does not take ownership of the label and assumes that the
228 V8_INLINE static T* New(Isolate* isolate, T* that);
236 * At present kResetInDestructor is not set, but that will change in a future
288 V8_INLINE Persistent(Isolate* isolate, Local<S> that)
289 : PersistentBase<T>(PersistentBase<T>::New(isolate, *that)) {
298 V8_INLINE Persistent(Isolate* isolate, const Persistent<S, M2>& that)
299 : PersistentBase<T>(PersistentBase<T>::New(isolate, *that)) {
308 V8_INLINE Persistent(const Persistent& that) : PersistentBase<T>(nullptr) {
309 Copy(that);
312 V8_INLINE Persistent(const Persistent<S, M2>& that) : PersistentBase<T>(0) {
313 Copy(that);
315 V8_INLINE Persistent& operator=(const Persistent& that) {
316 Copy(that);
320 V8_INLINE Persistent& operator=(const Persistent<S, M2>& that) {
321 Copy(that);
335 V8_INLINE static Persistent<T>& Cast(const Persistent<S>& that) {
338 // that the handle isn't empty before doing the checked cast.
339 if (!that.IsEmpty()) T::Cast(*that);
341 return reinterpret_cast<Persistent<T>&>(const_cast<Persistent<S>&>(that));
360 explicit V8_INLINE Persistent(T* that) : PersistentBase<T>(that) {}
363 V8_INLINE void Copy(const Persistent<S, M2>& that);
385 V8_INLINE Global(Isolate* isolate, Local<S> that)
386 : PersistentBase<T>(PersistentBase<T>::New(isolate, *that)) {
396 V8_INLINE Global(Isolate* isolate, const PersistentBase<S>& that)
397 : PersistentBase<T>(PersistentBase<T>::New(isolate, that.val_)) {
448 T* PersistentBase<T>::New(Isolate* isolate, T* that) {
449 if (that == nullptr) return nullptr;
450 internal::Address* p = reinterpret_cast<internal::Address*>(that);
457 void Persistent<T, M>::Copy(const Persistent<S, M2>& that) {
460 if (that.IsEmpty()) return;
461 internal::Address* p = reinterpret_cast<internal::Address*>(that.val_);
463 M::Copy(that, this);