Home
last modified time | relevance | path

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

/external/webkit/JavaScriptCore/runtime/
DLiteralParser.cpp39 while (m_ptr < m_end && isASCIISpace(*m_ptr)) in lex()
40 ++m_ptr; in lex()
42 ASSERT(m_ptr <= m_end); in lex()
43 if (m_ptr >= m_end) { in lex()
45 token.start = token.end = m_ptr; in lex()
49 token.start = m_ptr; in lex()
50 switch (*m_ptr) { in lex()
53 token.end = ++m_ptr; in lex()
57 token.end = ++m_ptr; in lex()
61 token.end = ++m_ptr; in lex()
[all …]
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 JSValue() const { return JSValue(m_ptr); } in JSValue()
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.h251 JSCell* m_ptr; variable
743 return reinterpret_cast<EncodedJSValue>(value.m_ptr); in encode()
758 return reinterpret_cast<intptr_t>(m_ptr); in immediateValue()
763 : m_ptr(0) in JSValue()
769 : m_ptr(reinterpret_cast<JSCell*>(0x4)) in JSValue()
774 : m_ptr(ptr) in JSValue()
779 : m_ptr(const_cast<JSCell*>(ptr)) in JSValue()
785 return m_ptr;
790 return m_ptr == other.m_ptr;
795 return m_ptr != other.m_ptr;
DLiteralParser.h75 , m_ptr(s.data()) in Lexer()
97 const UChar* m_ptr; variable
DJSCell.h255 return m_ptr; in asCell()
/external/webkit/JavaScriptCore/wtf/
DOwnPtr.h42 explicit OwnPtr(PtrType ptr = 0) : m_ptr(ptr) { } in m_ptr() function
43 OwnPtr(std::auto_ptr<ValueType> autoPtr) : m_ptr(autoPtr.release()) { } in OwnPtr()
53 ~OwnPtr() { deleteOwnedPtr(m_ptr); } in ~OwnPtr()
55 PtrType get() const { return m_ptr; } in get()
56 PtrType release() { PtrType ptr = m_ptr; m_ptr = 0; return ptr; } in release()
59 void set(PtrType ptr) { ASSERT(!ptr || m_ptr != ptr); deleteOwnedPtr(m_ptr); m_ptr = ptr; } in set()
61 …tr<ValueType> autoPtr) { ASSERT(!autoPtr.get() || m_ptr != autoPtr.get()); deleteOwnedPtr(m_ptr); in adopt()
63 void clear() { deleteOwnedPtr(m_ptr); m_ptr = 0; } in clear()
65 ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; }
66 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; }
[all …]
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 bool() const { return m_ptr; }
[all …]
DRetainPtr.h55 RetainPtr() : m_ptr(0) {} in RetainPtr()
56 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); } in RetainPtr()
58 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { } in RetainPtr()
59 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); } in RetainPtr()
61 RetainPtr(const RetainPtr& o) : m_ptr(o.m_ptr) { if (PtrType ptr = m_ptr) CFRetain(ptr); } in RetainPtr()
63 ~RetainPtr() { if (PtrType ptr = m_ptr) CFRelease(ptr); } in ~RetainPtr()
65 …emplate <typename U> RetainPtr(const RetainPtr<U>& o) : m_ptr(o.get()) { if (PtrType ptr = m_ptr) … in RetainPtr()
67 PtrType get() const { return m_ptr; } in get()
69 PtrType releaseRef() { PtrType tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
71 PtrType operator->() const { return m_ptr; }
[all …]
DRefPtr.h38 RefPtr() : m_ptr(0) { } in RefPtr()
39 RefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in RefPtr()
40 RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->ref(); } in RefPtr()
48 RefPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RefPtr()
49 bool isHashTableDeletedValue() const { return m_ptr == hashTableDeletedValue(); } in isHashTableDeletedValue()
51 ~RefPtr() { if (T* ptr = m_ptr) ptr->deref(); } in ~RefPtr()
53 …template <typename U> RefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref()… in RefPtr()
55 T* get() const { return m_ptr; } in get()
57 void clear() { if (T* ptr = m_ptr) ptr->deref(); m_ptr = 0; } in clear()
58 PassRefPtr<T> release() { PassRefPtr<T> tmp = adoptRef(m_ptr); m_ptr = 0; return tmp; } in release()
[all …]
DGOwnPtr.h42 explicit GOwnPtr(T* ptr = 0) : m_ptr(ptr) { } in m_ptr() function
43 ~GOwnPtr() { freeOwnedGPtr(m_ptr); } in ~GOwnPtr()
45 T* get() const { return m_ptr; } in get()
46 T* release() { T* ptr = m_ptr; m_ptr = 0; return ptr; } in release()
47 T*& outPtr() { ASSERT(!m_ptr); return m_ptr; } in outPtr()
49 void set(T* ptr) { ASSERT(!ptr || m_ptr != ptr); freeOwnedGPtr(m_ptr); m_ptr = ptr; } in set()
50 void clear() { freeOwnedGPtr(m_ptr); m_ptr = 0; } in clear()
52 T& operator*() const { ASSERT(m_ptr); return *m_ptr; }
53 T* operator->() const { ASSERT(m_ptr); return m_ptr; }
55 bool 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 (UNLIKELY(m_ptr != 0)) m_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 …]
DPassOwnPtr.h44 PassOwnPtr(PtrType ptr = 0) : m_ptr(ptr) { } in m_ptr() function
49 PassOwnPtr(const PassOwnPtr& o) : m_ptr(o.release()) { } in PassOwnPtr()
50 template <typename U> PassOwnPtr(const PassOwnPtr<U>& o) : m_ptr(o.release()) { } in PassOwnPtr()
52 ~PassOwnPtr() { deleteOwnedPtr(m_ptr); } in ~PassOwnPtr()
54 PtrType get() const { return m_ptr; } in get()
56 void clear() { m_ptr = 0; } in clear()
57 PtrType release() const { PtrType ptr = m_ptr; m_ptr = 0; return ptr; } in release()
59 ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; }
60 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; }
62 bool operator!() const { return !m_ptr; }
[all …]
DOwnFastMallocPtr.h32 explicit OwnFastMallocPtr(T* ptr) : m_ptr(ptr) in OwnFastMallocPtr()
38 fastFree(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/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/assembler/
DMacroAssemblerX86.h64 m_assembler.addl_im(imm.m_value, address.m_ptr); in add32()
69 m_assembler.adcl_im(imm.m_value, address.m_ptr); in addWithCarry32()
74 m_assembler.andl_im(imm.m_value, address.m_ptr); in and32()
79 m_assembler.orl_im(imm.m_value, address.m_ptr); in or32()
84 m_assembler.subl_im(imm.m_value, address.m_ptr); in sub32()
100 m_assembler.cvtsi2sd_mr(src.m_ptr, dest); in convertInt32ToDouble()
115 m_assembler.cmpl_rm(right, left.m_ptr); in branch32()
121 m_assembler.cmpl_im(right.m_value, left.m_ptr); in branch32()
DMacroAssemblerX86_64.h58 move(ImmPtr(address.m_ptr), scratchRegister); in add32()
64 move(ImmPtr(address.m_ptr), scratchRegister); in and32()
70 move(ImmPtr(address.m_ptr), scratchRegister); in or32()
76 move(ImmPtr(address.m_ptr), scratchRegister); in sub32()
99 move(Imm32(*static_cast<int32_t*>(src.m_ptr)), scratchRegister); in convertInt32ToDouble()
165 move(ImmPtr(address.m_ptr), scratchRegister); in addPtr()
363 move(ImmPtr(left.m_ptr), scratchRegister); in branchPtr()
DMacroAssemblerARM.h553 m_assembler.ldr_un_imm(ARM::S1, reinterpret_cast<ARMWord>(address.m_ptr)); in add32()
556 m_assembler.ldr_un_imm(ARM::S0, reinterpret_cast<ARMWord>(address.m_ptr)); in add32()
562 m_assembler.ldr_un_imm(ARM::S1, reinterpret_cast<ARMWord>(address.m_ptr)); in sub32()
565 m_assembler.ldr_un_imm(ARM::S0, reinterpret_cast<ARMWord>(address.m_ptr)); in sub32()
577 load32(left.m_ptr, ARM::S1); in branch32()
583 load32(left.m_ptr, ARM::S1); in branch32()
DMacroAssemblerARMv7.h161 load32(address.m_ptr, dataTempRegister); in add32()
173 store32(dataTempRegister, address.m_ptr); in add32()
285 load32(address.m_ptr, dataTempRegister); in sub32()
297 store32(dataTempRegister, address.m_ptr); in sub32()
721 load32(left.m_ptr, dataTempRegister); in branch32()
728 load32(left.m_ptr, addressTempRegister); in branch32()
DAbstractMacroAssembler.h141 : m_ptr(ptr) in AbsoluteAddress()
145 void* m_ptr; member
/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.