Home
last modified time | relevance | path

Searched refs:m_ptr (Results 1 – 15 of 15) sorted by relevance

/external/webkit/JavaScriptCore/wtf/
DOwnArrayPtr.h32 explicit OwnArrayPtr(T* ptr = 0) : m_ptr(ptr) { } in m_ptr() function
35 T* get() const { return m_ptr; } in get()
36 T* release() { T* ptr = m_ptr; m_ptr = 0; return ptr; } in release()
38 void set(T* ptr) { ASSERT(m_ptr != ptr); safeDelete(); m_ptr = ptr; } in set()
39 void clear() { safeDelete(); m_ptr = 0; } in clear()
41 T& operator*() const { ASSERT(m_ptr); return *m_ptr; }
42 T* operator->() const { ASSERT(m_ptr); return m_ptr; }
44 T& operator[](std::ptrdiff_t i) const { ASSERT(m_ptr); ASSERT(i >= 0); return m_ptr[i]; }
46 bool operator!() const { return !m_ptr; }
50 operator UnspecifiedBoolType() const { return m_ptr ? &OwnArrayPtr::m_ptr : 0; } in UnspecifiedBoolType()
[all …]
DRefPtr.h37 RefPtr() : m_ptr(0) { } in RefPtr()
38 RefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in RefPtr()
39 RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->ref(); } in RefPtr()
47 RefPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RefPtr()
48 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue()
50 ~RefPtr() { if (T* ptr = m_ptr) ptr->deref(); } in ~RefPtr()
52 …template <typename U> RefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref()… in RefPtr()
54 T* get() const { return m_ptr; } in get()
56 void clear() { if (T* ptr = m_ptr) ptr->deref(); m_ptr = 0; } in clear()
57 PassRefPtr<T> release() { PassRefPtr<T> tmp = adoptRef(m_ptr); m_ptr = 0; return tmp; } in release()
[all …]
DGOwnPtr.h41 explicit GOwnPtr(T* ptr = 0) : m_ptr(ptr) { } in m_ptr() function
42 ~GOwnPtr() { freeOwnedGPtr(m_ptr); } in ~GOwnPtr()
44 T* get() const { return m_ptr; } in get()
45 T* release() { T* ptr = m_ptr; m_ptr = 0; return ptr; } in release()
46 T*& outPtr() { ASSERT(!m_ptr); return m_ptr; } in outPtr()
48 void set(T* ptr) { ASSERT(!ptr || m_ptr != ptr); freeOwnedGPtr(m_ptr); m_ptr = ptr; } in set()
49 void clear() { freeOwnedGPtr(m_ptr); m_ptr = 0; } in clear()
51 T& operator*() const { ASSERT(m_ptr); return *m_ptr; }
52 T* operator->() const { ASSERT(m_ptr); return m_ptr; }
54 bool operator!() const { return !m_ptr; }
[all …]
DOwnPtr.h69 explicit OwnPtr(PtrType ptr = 0) : m_ptr(ptr) { }
70 OwnPtr(std::auto_ptr<ValueType> autoPtr) : m_ptr(autoPtr.release()) { }
71 ~OwnPtr() { deleteOwnedPtr(m_ptr); }
73 PtrType get() const { return m_ptr; }
74 PtrType release() { PtrType ptr = m_ptr; m_ptr = 0; return ptr; }
77 void set(PtrType ptr) { ASSERT(!ptr || m_ptr != ptr); deleteOwnedPtr(m_ptr); m_ptr = ptr; }
79 …tr<ValueType> autoPtr) { ASSERT(!autoPtr.get() || m_ptr != autoPtr.get()); deleteOwnedPtr(m_ptr);
81 void clear() { deleteOwnedPtr(m_ptr); m_ptr = 0; }
83 ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; }
84 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; }
[all …]
DRetainPtr.h62 RetainPtr() : m_ptr(0) {}
63 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); }
65 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { }
66 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); }
68 RetainPtr(const RetainPtr& o) : m_ptr(o.m_ptr) { if (PtrType ptr = m_ptr) CFRetain(ptr); }
70 ~RetainPtr() { if (PtrType ptr = m_ptr) CFRelease(ptr); }
72 …emplate <typename U> RetainPtr(const RetainPtr<U>& o) : m_ptr(o.get()) { if (PtrType ptr = m_ptr) …
74 PtrType get() const { return m_ptr; }
76 PtrType releaseRef() { PtrType tmp = m_ptr; m_ptr = 0; return tmp; }
78 PtrType operator->() const { return m_ptr; }
[all …]
DPassRefPtr.h34 PassRefPtr() : m_ptr(0) {} in PassRefPtr()
35 PassRefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in PassRefPtr()
40 PassRefPtr(const PassRefPtr& o) : m_ptr(o.releaseRef()) {} in PassRefPtr()
41 template <typename U> PassRefPtr(const PassRefPtr<U>& o) : m_ptr(o.releaseRef()) { } in PassRefPtr()
43 ALWAYS_INLINE ~PassRefPtr() { if (T* ptr = m_ptr) ptr->deref(); } in ~PassRefPtr()
46 PassRefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref(); } in PassRefPtr()
48 T* get() const { return m_ptr; } in get()
50 void clear() { if (T* ptr = m_ptr) ptr->deref(); m_ptr = 0; } in clear()
51 T* releaseRef() const { T* tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
53 T& operator*() const { return *m_ptr; }
[all …]
/external/webkit/WebCore/platform/win/
DCOMPtr.h49 COMPtr() : m_ptr(0) { } in COMPtr()
50 COMPtr(T* ptr) : m_ptr(ptr) { if (m_ptr) m_ptr->AddRef(); } in COMPtr()
51 COMPtr(AdoptCOMTag, T* ptr) : m_ptr(ptr) { } in COMPtr()
52 COMPtr(const COMPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->AddRef(); } in COMPtr()
54 COMPtr(QueryTag, IUnknown* ptr) : m_ptr(copyQueryInterfaceRef(ptr)) { } in COMPtr()
55 …template <typename U> COMPtr(QueryTag, const COMPtr<U>& ptr) : m_ptr(copyQueryInterfaceRef(ptr.get… in COMPtr()
57 COMPtr(CreateTag, const IID& clsid) : m_ptr(createInstance(clsid)) { } in COMPtr()
60 COMPtr(WTF::HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in COMPtr()
61 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue()
63 ~COMPtr() { if (m_ptr) m_ptr->Release(); } in ~COMPtr()
[all …]
/external/webkit/JavaScriptCore/API/
DJSRetainPtr.h42 JSRetainPtr() : m_ptr(0) {} in JSRetainPtr()
43 JSRetainPtr(T ptr) : m_ptr(ptr) { if (ptr) JSRetain(ptr); } in JSRetainPtr()
45 JSRetainPtr(AdoptTag, T ptr) : m_ptr(ptr) { } in JSRetainPtr()
47 JSRetainPtr(const JSRetainPtr& o) : m_ptr(o.m_ptr) { if (T ptr = m_ptr) JSRetain(ptr); } in JSRetainPtr()
49 ~JSRetainPtr() { if (T ptr = m_ptr) JSRelease(ptr); } in ~JSRetainPtr()
51 …template <typename U> JSRetainPtr(const JSRetainPtr<U>& o) : m_ptr(o.get()) { if (T ptr = m_ptr) J… in JSRetainPtr()
53 T get() const { return m_ptr; } in get()
55 T releaseRef() { T tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
57 T operator->() const { return m_ptr; }
59 bool operator!() const { return !m_ptr; }
[all …]
/external/webkit/WebCore/dom/
DDocPtr.h29 DocPtr() : m_ptr(0) {} in DocPtr()
30 DocPtr(T *ptr) : m_ptr(ptr) { if (ptr) ptr->selfOnlyRef(); } in DocPtr()
31 DocPtr(const DocPtr &o) : m_ptr(o.m_ptr) { if (T *ptr = m_ptr) ptr->selfOnlyRef(); } in DocPtr()
32 ~DocPtr() { if (T *ptr = m_ptr) ptr->selfOnlyDeref(); } in ~DocPtr()
34 …template <class U> DocPtr(const DocPtr<U> &o) : m_ptr(o.get()) { if (T *ptr = m_ptr) ptr->selfOnly… in DocPtr()
36 void resetSkippingRef(T *o) { m_ptr = o; } in resetSkippingRef()
38 T *get() const { return m_ptr; } in get()
40 T &operator*() const { return *m_ptr; }
41 T *operator->() const { return m_ptr; }
43 bool operator!() const { return !m_ptr; }
[all …]
/external/webkit/JavaScriptCore/runtime/
DProtect.h68 ProtectedPtr() : m_ptr(0) {} in ProtectedPtr()
75 T* get() const { return m_ptr; } in get()
76 operator T*() const { return m_ptr; }
77 operator JSValuePtr() const { return JSValuePtr(m_ptr); } in JSValuePtr()
78 T* operator->() const { return m_ptr; }
80 operator bool() const { return m_ptr; }
81 bool operator!() const { return !m_ptr; }
87 T* m_ptr;
114 : m_ptr(ptr) in ProtectedPtr()
116 gcProtectNullTolerant(m_ptr); in ProtectedPtr()
[all …]
DJSValue.h60 return reinterpret_cast<intptr_t>(m_ptr); in immediateValue()
65 : m_ptr(0) in JSValuePtr()
70 : m_ptr(ptr) in JSValuePtr()
75 : m_ptr(const_cast<JSCell*>(ptr)) in JSValuePtr()
81 return m_ptr;
86 return m_ptr == other.m_ptr;
91 return m_ptr != other.m_ptr;
96 return reinterpret_cast<JSValueEncodedAsPointer*>(value.m_ptr); in encode()
206 JSCell* m_ptr; variable
DJSCell.h160 return m_ptr; in asCell()
/external/webkit/JavaScriptCore/assembler/
DMacroAssembler.h142 : m_ptr(ptr) in AbsoluteAddress()
146 void* m_ptr; member
501 move(ImmPtr(address.m_ptr), scratchRegister); in add32()
504 m_assembler.addl_im(imm.m_value, address.m_ptr); in add32()
748 move(ImmPtr(address.m_ptr), scratchRegister); in sub32()
751 m_assembler.subl_im(imm.m_value, address.m_ptr); in sub32()
1509 move(ImmPtr(address.m_ptr), scratchRegister); in jnePtr()
1512 m_assembler.cmpl_rm(reg, address.m_ptr); in jnePtr()
1546 m_assembler.cmpl_im(imm.asIntptr(), address.m_ptr); in jnePtr()
/external/webkit/JavaScriptCore/
DChangeLog-2007-10-1414044 type by calling get() instead of going directly at m_ptr.
14204 * kxmlcore/PassRefPtr.h: Always set m_ptr before calling deref.
14870 * kxmlcore/PassRefPtr.h: made m_ptr mutable (ugh)
DChangeLog-2008-08-1022286 Use a pointer to the m_ptr member instead of the get member.