Lines Matching defs:that

2 // Use of this source code is governed by a BSD-style license that can be
64 * A stack-allocated class that governs a number of local handles.
66 * allocated within that handle scope until either the handle scope is
69 * place in the new handle scope until it is deleted. After that,
129 * that it knows that the objects are still alive. Also, because the garbage
139 * operations. They are managed by HandleScopes. That means that a HandleScope
140 * must exist on the stack when they are created and that they are only valid
159 V8_INLINE Local(Local<S> that) : val_(reinterpret_cast<T*>(*that)) {
189 * indicate that the values aren't equal in the JavaScript sense.
193 V8_INLINE bool operator==(const Local<S>& that) const {
195 internal::Address* b = reinterpret_cast<internal::Address*>(that.val_);
202 V8_INLINE bool operator==(const PersistentBase<S>& that) const {
204 internal::Address* b = reinterpret_cast<internal::Address*>(that.val_);
217 * value does not indicate that the values aren't equal in the JavaScript
221 V8_INLINE bool operator!=(const Local<S>& that) const {
222 return !operator==(that);
226 V8_INLINE bool operator!=(const Persistent<S>& that) const {
227 return !operator==(that);
236 V8_INLINE static Local<T> Cast(Local<S> that) {
239 // that the handle isn't empty before doing the checked cast.
240 if (that.IsEmpty()) return Local<T>();
242 return Local<T>(T::Cast(*that));
260 V8_INLINE static Local<T> New(Isolate* isolate, Local<T> that) {
261 return New(isolate, that.val_);
265 const PersistentBase<T>& that) {
266 return New(isolate, that.val_);
270 const BasicTracedReference<T>& that) {
271 return New(isolate, *that);
317 explicit V8_INLINE Local(T* that) : val_(that) {}
318 V8_INLINE static Local<T> New(Isolate* isolate, T* that) {
319 if (that == nullptr) return Local<T>();
320 T* that_ptr = that;
335 * A MaybeLocal<> is a wrapper around Local<> that enforces a check whether
340 * e.g. because a previous API call threw an exception that hasn't been caught
341 * yet, or because a TerminateExecution exception was thrown. In that case, an
349 V8_INLINE MaybeLocal(Local<S> that) : val_(reinterpret_cast<T*>(*that)) {