Lines Matching defs:JSHandle

26  * JSHandle: A JSHandle provides a reference to an object that survives relocation by the garbage collector.
28 * HandleStorage: Handles are only valid within a HandleScope. When a JSHandle is created for an object a cell is
34 * JSHandle ---- HandleStorage ----- heap
40 * JSHandle<T> jhandle(thread, obj4);
41 * JSHandle<T> jhandle(thread, obj5);
42 * JSHandle<T> jhandle(thread, obj6);
43 * JSHandle<T> jhandle(thread, obj7);
56 * JSHandle<T> handle;
59 * JSHandle<T> jshandle(thread, T*);
77 class JSHandle {
79 inline JSHandle() : address_(reinterpret_cast<uintptr_t>(nullptr)) {}
80 ~JSHandle() = default;
81 DEFAULT_NOEXCEPT_MOVE_SEMANTIC(JSHandle);
82 DEFAULT_COPY_SEMANTIC(JSHandle);
84 JSHandle(const JSThread *thread, JSTaggedValue value)
89 JSHandle(const JSThread *thread, JSTaggedValue value, bool isPrimitive)
99 JSHandle(const JSThread *thread, const TaggedObject *value)
110 explicit JSHandle(const JSHandle<S> &handle) : address_(handle.GetAddress()) {}
113 inline static JSHandle<T> Cast(const JSHandle<S> &handle)
116 return JSHandle<T>(handle.GetAddress());
147 inline bool operator==(const JSHandle<T> &other) const
152 inline bool operator!=(const JSHandle<T> &other) const
168 inline explicit JSHandle(uintptr_t slot) : address_(slot)
184 inline explicit JSHandle(const JSTaggedType *slot) : address_(reinterpret_cast<uintptr_t>(slot)) {}
185 inline explicit JSHandle(const T *const *slot) : address_(reinterpret_cast<uintptr_t>(slot)) {}
196 inline JSTaggedValue *JSHandle<JSTaggedValue>::operator->() const
202 inline JSTaggedValue *JSHandle<JSTaggedValue>::operator*() const
208 class JSMutableHandle : public JSHandle<T> {
215 JSMutableHandle(const JSThread *thread, JSTaggedValue value) : JSHandle<T>(thread, value) {}
216 JSMutableHandle(const JSThread *thread, const TaggedArray *value) : JSHandle<T>(thread, value) {}
218 JSMutableHandle(const JSThread *thread, const JSHandle<S> &handle)
219 : JSHandle<T>(thread, handle.GetTaggedValue())
222 inline explicit JSMutableHandle(uintptr_t slot) : JSHandle<T>(slot)
229 JSHandle<T>::Cast(handle);
241 void Update(const JSHandle<S> &handle)
252 struct IsJSHandle<JSHandle<Value>> : std::true_type {};