���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /proc/self/root/home/real/node-v13.0.1/deps/v8/src/objects/ |
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_OBJECTS_MAYBE_OBJECT_H_ #define V8_OBJECTS_MAYBE_OBJECT_H_ #include "src/objects/tagged-impl.h" namespace v8 { namespace internal { // A MaybeObject is either a SMI, a strong reference to a HeapObject, a weak // reference to a HeapObject, or a cleared weak reference. It's used for // implementing in-place weak references (see design doc: goo.gl/j6SdcK ) class MaybeObject : public TaggedImpl<HeapObjectReferenceType::WEAK, Address> { public: constexpr MaybeObject() : TaggedImpl(kNullAddress) {} constexpr explicit MaybeObject(Address ptr) : TaggedImpl(ptr) {} // These operator->() overloads are required for handlified code. constexpr const MaybeObject* operator->() const { return this; } V8_INLINE static MaybeObject FromSmi(Smi smi); V8_INLINE static MaybeObject FromObject(Object object); V8_INLINE static MaybeObject MakeWeak(MaybeObject object); #ifdef VERIFY_HEAP static void VerifyMaybeObjectPointer(Isolate* isolate, MaybeObject p); #endif private: template <typename TFieldType, int kFieldOffset> friend class TaggedField; }; // A HeapObjectReference is either a strong reference to a HeapObject, a weak // reference to a HeapObject, or a cleared weak reference. class HeapObjectReference : public MaybeObject { public: explicit HeapObjectReference(Address address) : MaybeObject(address) {} V8_INLINE explicit HeapObjectReference(Object object); V8_INLINE static HeapObjectReference Strong(Object object); V8_INLINE static HeapObjectReference Weak(Object object); V8_INLINE static HeapObjectReference ClearedValue(Isolate* isolate); template <typename THeapObjectSlot> V8_INLINE static void Update(THeapObjectSlot slot, HeapObject value); }; } // namespace internal } // namespace v8 #endif // V8_OBJECTS_MAYBE_OBJECT_H_