/external/webkit/Source/JavaScriptCore/runtime/ |
D | LiteralParser.cpp | 47 while (m_ptr < m_end && isJSONWhiteSpace(*m_ptr)) in lex() 48 ++m_ptr; in lex() 50 ASSERT(m_ptr <= m_end); in lex() 51 if (m_ptr >= m_end) { in lex() 53 token.start = token.end = m_ptr; in lex() 57 token.start = m_ptr; in lex() 58 switch (*m_ptr) { in lex() 61 token.end = ++m_ptr; in lex() 65 token.end = ++m_ptr; in lex() 69 token.end = ++m_ptr; in lex() [all …]
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | OwnArrayPtr.h | 39 OwnArrayPtr() : m_ptr(0) { } in OwnArrayPtr() 50 ~OwnArrayPtr() { deleteOwnedArrayPtr(m_ptr); } in ~OwnArrayPtr() 52 PtrType get() const { return m_ptr; } in get() 58 T& operator*() const { ASSERT(m_ptr); return *m_ptr; } 59 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; } 61 T& operator[](std::ptrdiff_t i) const { ASSERT(m_ptr); ASSERT(i >= 0); return m_ptr[i]; } 63 bool operator!() const { return !m_ptr; } 67 operator bool() const { return m_ptr; } 70 operator UnspecifiedBoolType() const { return m_ptr ? &OwnArrayPtr::m_ptr : 0; } in UnspecifiedBoolType() 77 void swap(OwnArrayPtr& o) { std::swap(m_ptr, o.m_ptr); } in swap() [all …]
|
D | PassRefPtr.h | 66 PassRefPtr() : m_ptr(0) { } in PassRefPtr() 67 PassRefPtr(T* ptr) : m_ptr(ptr) { refIfNotNull(ptr); } in PassRefPtr() 71 PassRefPtr(const PassRefPtr& o) : m_ptr(o.leakRef()) { } in PassRefPtr() 72 template<typename U> PassRefPtr(const PassRefPtr<U>& o) : m_ptr(o.leakRef()) { } in PassRefPtr() 74 ALWAYS_INLINE ~PassRefPtr() { derefIfNotNull(m_ptr); } in ~PassRefPtr() 78 T* get() const { return m_ptr; } in get() 83 T& operator*() const { return *m_ptr; } 84 T* operator->() const { return m_ptr; } 86 bool operator!() const { return !m_ptr; } 90 operator UnspecifiedBoolType() const { return m_ptr ? &PassRefPtr::m_ptr : 0; } in UnspecifiedBoolType() [all …]
|
D | OwnPtr.h | 46 OwnPtr() : m_ptr(0) { } in OwnPtr() 57 ~OwnPtr() { deleteOwnedPtr(m_ptr); } in ~OwnPtr() 59 PtrType get() const { return m_ptr; } in get() 65 ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; } 66 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; } 68 bool operator!() const { return !m_ptr; } 72 operator UnspecifiedBoolType() const { return m_ptr ? &OwnPtr::m_ptr : 0; } in UnspecifiedBoolType() 78 void swap(OwnPtr& o) { std::swap(m_ptr, o.m_ptr); } in swap() 81 explicit OwnPtr(PtrType ptr) : m_ptr(ptr) { } in OwnPtr() 86 PtrType m_ptr; [all …]
|
D | RefPtr.h | 42 ALWAYS_INLINE RefPtr() : m_ptr(0) { } in RefPtr() 43 ALWAYS_INLINE RefPtr(T* ptr) : m_ptr(ptr) { refIfNotNull(ptr); } in RefPtr() 44 ALWAYS_INLINE RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { refIfNotNull(m_ptr); } in RefPtr() 45 template<typename U> RefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { refIfNotNull(m_ptr); } in RefPtr() 55 RefPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RefPtr() 56 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue() 58 ALWAYS_INLINE ~RefPtr() { derefIfNotNull(m_ptr); } in ~RefPtr() 60 T* get() const { return m_ptr; } in get() 63 PassRefPtr<T> release() { PassRefPtr<T> tmp = adoptRef(m_ptr); m_ptr = 0; return tmp; } in release() 65 T& operator*() const { return *m_ptr; } [all …]
|
D | RetainPtr.h | 60 RetainPtr() : m_ptr(0) {} in RetainPtr() 61 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); } in RetainPtr() 63 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { } in RetainPtr() 64 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); } in RetainPtr() 66 RetainPtr(const RetainPtr& o) : m_ptr(o.m_ptr) { if (PtrType ptr = m_ptr) CFRetain(ptr); } in RetainPtr() 69 RetainPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RetainPtr() 70 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue() 72 ~RetainPtr() { if (PtrType ptr = m_ptr) CFRelease(ptr); } in ~RetainPtr() 76 PtrType get() const { return m_ptr; } in get() 81 PtrType operator->() const { return m_ptr; } [all …]
|
D | PassOwnArrayPtr.h | 44 PassOwnArrayPtr() : m_ptr(0) { } in PassOwnArrayPtr() 47 PassOwnArrayPtr(std::nullptr_t) : m_ptr(0) { } in PassOwnArrayPtr() 53 PassOwnArrayPtr(const PassOwnArrayPtr& o) : m_ptr(o.leakPtr()) { } in PassOwnArrayPtr() 54 template<typename U> PassOwnArrayPtr(const PassOwnArrayPtr<U>& o) : m_ptr(o.leakPtr()) { } in PassOwnArrayPtr() 56 ~PassOwnArrayPtr() { deleteOwnedArrayPtr(m_ptr); } in ~PassOwnArrayPtr() 58 PtrType get() const { return m_ptr; } in get() 63 T& operator*() const { ASSERT(m_ptr); return *m_ptr; } 64 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; } 66 bool operator!() const { return !m_ptr; } 70 operator bool() const { return m_ptr; } [all …]
|
D | PassOwnPtr.h | 50 PassOwnPtr() : m_ptr(0) { } in PassOwnPtr() 55 PassOwnPtr(const PassOwnPtr& o) : m_ptr(o.leakPtr()) { } in PassOwnPtr() 56 template<typename U> PassOwnPtr(const PassOwnPtr<U>& o) : m_ptr(o.leakPtr()) { } in PassOwnPtr() 58 ~PassOwnPtr() { deleteOwnedPtr(m_ptr); } in ~PassOwnPtr() 60 PtrType get() const { return m_ptr; } in get() 65 ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; } 66 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; } 68 bool operator!() const { return !m_ptr; } 72 operator UnspecifiedBoolType() const { return m_ptr ? &PassOwnPtr::m_ptr : 0; } in UnspecifiedBoolType() 83 PassOwnPtr(PtrType ptr) : m_ptr(ptr) { } in PassOwnPtr() [all …]
|
D | OwnFastMallocPtr.h | 32 explicit OwnFastMallocPtr(T* ptr) : m_ptr(ptr) in OwnFastMallocPtr() 38 fastFree(const_cast<void*>(static_cast<const void*>(const_cast<const T*>(m_ptr)))); in ~OwnFastMallocPtr() 41 T* get() const { return m_ptr; } in get() 42 T* release() { T* ptr = m_ptr; m_ptr = 0; return ptr; } in release() 45 T* m_ptr;
|
/external/webkit/Source/JavaScriptCore/API/ |
D | JSRetainPtr.h | 42 JSRetainPtr() : m_ptr(0) { } in JSRetainPtr() 43 JSRetainPtr(T ptr) : m_ptr(ptr) { if (ptr) JSRetain(ptr); } in JSRetainPtr() 44 JSRetainPtr(AdoptTag, T ptr) : m_ptr(ptr) { } in JSRetainPtr() 49 T get() const { return m_ptr; } in get() 54 T operator->() const { return m_ptr; } 56 bool operator!() const { return !m_ptr; } 60 operator UnspecifiedBoolType() const { return m_ptr ? &JSRetainPtr::m_ptr : 0; } in UnspecifiedBoolType() 75 T m_ptr; 79 : m_ptr(o.m_ptr) in JSRetainPtr() 81 if (m_ptr) in JSRetainPtr() [all …]
|
/external/webkit/Source/WebKit2/UIProcess/API/cpp/ |
D | WKRetainPtr.h | 41 : m_ptr(0) in WKRetainPtr() 46 : m_ptr(ptr) in WKRetainPtr() 53 : m_ptr(ptr) in WKRetainPtr() 58 : m_ptr(o.get()) in WKRetainPtr() 60 if (PtrType ptr = m_ptr) in WKRetainPtr() 65 : m_ptr(o.m_ptr) in WKRetainPtr() 67 if (PtrType ptr = m_ptr) in WKRetainPtr() 73 if (PtrType ptr = m_ptr) in ~WKRetainPtr() 77 PtrType get() const { return m_ptr; } in get() 81 PtrType ptr = m_ptr; in clear() [all …]
|
/external/webkit/Source/WebCore/platform/win/ |
D | COMPtr.h | 52 COMPtr() : m_ptr(0) { } in COMPtr() 53 COMPtr(T* ptr) : m_ptr(ptr) { if (m_ptr) m_ptr->AddRef(); } in COMPtr() 54 COMPtr(AdoptCOMTag, T* ptr) : m_ptr(ptr) { } in COMPtr() 55 COMPtr(const COMPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->AddRef(); } in COMPtr() 57 COMPtr(QueryTag, IUnknown* ptr) : m_ptr(copyQueryInterfaceRef(ptr)) { } in COMPtr() 58 …template<typename U> COMPtr(QueryTag, const COMPtr<U>& ptr) : m_ptr(copyQueryInterfaceRef(ptr.get(… in COMPtr() 60 COMPtr(CreateTag, const IID& clsid) : m_ptr(createInstance(clsid)) { } in COMPtr() 63 COMPtr(WTF::HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in COMPtr() 64 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue() 66 ~COMPtr() { if (m_ptr) m_ptr->Release(); } in ~COMPtr() [all …]
|
/external/webkit/Source/JavaScriptCore/wtf/gobject/ |
D | GOwnPtr.h | 46 explicit GOwnPtr(T* ptr = 0) : m_ptr(ptr) { } in m_ptr() function 47 ~GOwnPtr() { freeOwnedGPtr(m_ptr); } in ~GOwnPtr() 49 T* get() const { return m_ptr; } in get() 52 T* ptr = m_ptr; in release() 53 m_ptr = 0; in release() 59 ASSERT(!m_ptr); in outPtr() 60 return m_ptr; in outPtr() 65 ASSERT(!ptr || m_ptr != ptr); in set() 66 freeOwnedGPtr(m_ptr); in set() 67 m_ptr = ptr; in set() [all …]
|
D | GRefPtr.h | 46 GRefPtr() : m_ptr(0) { } in GRefPtr() 49 : m_ptr(ptr) in GRefPtr() 56 : m_ptr(o.m_ptr) in GRefPtr() 58 if (T* ptr = m_ptr) in GRefPtr() 63 : m_ptr(o.get()) in GRefPtr() 65 if (T* ptr = m_ptr) in GRefPtr() 71 if (T* ptr = m_ptr) in ~GRefPtr() 77 T* ptr = m_ptr; in clear() 78 m_ptr = 0; in clear() 85 T* ptr = m_ptr; in leakRef() [all …]
|
/external/webkit/Source/WebCore/storage/ |
D | IDBKeyPath.cpp | 50 , m_ptr(s.characters()) in IDBKeyPathLexer() 72 const UChar* m_ptr; member in WebCore::IDBKeyPathLexer 79 while (m_ptr < m_end && isASCIISpace(*m_ptr)) in lex() 80 ++m_ptr; in lex() 82 if (m_ptr >= m_end) in lex() 85 ASSERT(m_ptr < m_end); in lex() 86 switch (*m_ptr) { in lex() 88 ++m_ptr; in lex() 91 ++m_ptr; in lex() 94 ++m_ptr; in lex() [all …]
|
/external/webkit/Source/WebKit/chromium/public/ |
D | WebPrivatePtr.h | 46 WebPrivatePtr() : m_ptr(0) { } in WebPrivatePtr() 47 ~WebPrivatePtr() { WEBKIT_ASSERT(!m_ptr); } in ~WebPrivatePtr() 49 bool isNull() const { return !m_ptr; } in isNull() 53 : m_ptr(prp.releaseRef()) in WebPrivatePtr() 64 T* p = other.m_ptr; 79 return m_ptr; in get() 84 ASSERT(m_ptr); 85 return m_ptr; 94 if (m_ptr) in assign() 95 m_ptr->deref(); in assign() [all …]
|
D | WebVector.h | 78 initializeFrom(other.m_ptr, other.m_size); in WebVector() 121 return m_ptr[i]; 126 return m_ptr[i]; 132 if (m_ptr[i] == value) in contains() 138 T* data() { return m_ptr; } in data() 139 const T* data() const { return m_ptr; } in data() 143 std::swap(m_ptr, other.m_ptr); in swap() 152 m_ptr = 0; in initialize() 154 m_ptr = static_cast<T*>(::operator new(sizeof(T) * m_size)); in initialize() 156 new (&m_ptr[i]) T(); in initialize() [all …]
|
D | WebPrivateOwnPtr.h | 42 WebPrivateOwnPtr() : m_ptr(0) {} in WebPrivateOwnPtr() 43 ~WebPrivateOwnPtr() { WEBKIT_ASSERT(!m_ptr); } in ~WebPrivateOwnPtr() 47 : m_ptr(ptr) in WebPrivateOwnPtr() 53 delete m_ptr; in reset() local 54 m_ptr = ptr; in reset() 57 T* get() const { return m_ptr; } in get() 61 WEBKIT_ASSERT(m_ptr); 62 return m_ptr; 67 T* m_ptr;
|
/external/clang/test/Analysis/ |
D | pointer-to-member.cpp | 8 operator MemberPointer() const { return m_ptr ? &A::m_ptr : 0; } in operator MemberPointer() 10 A *m_ptr; member 16 obj.m_ptr = &obj; in testConditionalUse() 17 clang_analyzer_eval(obj.m_ptr); // expected-warning{{TRUE}} in testConditionalUse() 18 clang_analyzer_eval(&A::m_ptr); // expected-warning{{TRUE}} in testConditionalUse() 21 obj.m_ptr = 0; in testConditionalUse() 22 clang_analyzer_eval(obj.m_ptr); // expected-warning{{FALSE}} in testConditionalUse() 33 obj.m_ptr = 0; in testDereferencing() 35 A::MemberPointer member = &A::m_ptr; in testDereferencing()
|
/external/valgrind/main/drd/tests/ |
D | annotate_smart_pointer.cpp | 166 : m_ptr(NULL), m_count_ptr(NULL) in smart_ptr() 170 : m_ptr(NULL), m_count_ptr(NULL) in smart_ptr() 177 : m_ptr(NULL), m_count_ptr(NULL) in smart_ptr() 188 : m_ptr(NULL), m_count_ptr(NULL) in smart_ptr() 190 set(sp.m_ptr, sp.m_count_ptr); in smart_ptr() 195 : m_ptr(NULL), m_count_ptr(NULL) in smart_ptr() 197 set(sp.m_ptr, sp.m_count_ptr); in smart_ptr() 202 set(sp.m_ptr, sp.m_count_ptr); in operator =() 221 assert(m_ptr); in operator ->() 222 return m_ptr; in operator ->() [all …]
|
/external/webkit/Source/WebKit2/Platform/ |
D | WorkItem.h | 63 : m_ptr(ptr) in MemberFunctionWorkItem0() 66 m_ptr->ref(); in MemberFunctionWorkItem0() 71 m_ptr->deref(); in ~MemberFunctionWorkItem0() 76 (m_ptr->*m_function)(); in execute() 79 C* m_ptr; variable 91 : m_ptr(ptr) in MemberFunctionWorkItem1() 95 m_ptr->ref(); in MemberFunctionWorkItem1() 100 m_ptr->deref(); in ~MemberFunctionWorkItem1() 105 (m_ptr->*m_function)(m_t0); in execute() 108 C* m_ptr; variable [all …]
|
/external/webkit/Source/JavaScriptCore/jit/ |
D | ExecutableAllocatorFixedVMPool.cpp | 180 : m_ptr(0) in LazyAllocationTable() 191 if (!m_ptr) in allocate() 192 m_ptr = new NextLevel(); in allocate() 193 return m_ptr->allocate(sizeClass); in allocate() 198 ASSERT(m_ptr); in free() 199 m_ptr->free(location, sizeClass); in free() 200 if (m_ptr->isEmpty()) { in free() 201 delete m_ptr; in free() 202 m_ptr = 0; in free() 208 return !m_ptr; in isEmpty() [all …]
|
/external/webkit/Source/JavaScriptCore/assembler/ |
D | MacroAssemblerX86.h | 62 m_assembler.addl_im(imm.m_value, address.m_ptr); in add32() 67 m_assembler.adcl_im(imm.m_value, address.m_ptr); in addWithCarry32() 72 m_assembler.andl_im(imm.m_value, address.m_ptr); in and32() 77 m_assembler.orl_im(imm.m_value, address.m_ptr); in or32() 82 m_assembler.subl_im(imm.m_value, address.m_ptr); in sub32() 98 m_assembler.cvtsi2sd_mr(src.m_ptr, dest); in convertInt32ToDouble() 113 m_assembler.cmpl_rm(right, left.m_ptr); in branch32() 119 m_assembler.cmpl_im(right.m_value, left.m_ptr); in branch32()
|
/external/webkit/Source/WebKit/wx/ |
D | WebEdit.cpp | 40 : m_ptr(0) in WebCoreEditCommandPrivate() 44 : m_ptr(adoptRef(ptr)) in WebCoreEditCommandPrivate() 49 WebCore::WebCoreEditCommand* command() { return m_ptr.get(); } in command() 51 RefPtr<WebCore::WebCoreEditCommand> m_ptr; member in WebCoreEditCommandPrivate
|
/external/clang/test/Sema/ |
D | parentheses.cpp | 40 void test(S *s, bool (S::*m_ptr)()) { in test() argument 48 (void)((s->*m_ptr)() ? "foo" : "bar"); in test()
|