/external/webkit/Source/JavaScriptCore/wtf/text/ |
D | StringImpl.h | 65 class StringImpl : public StringImplBase { 77 StringImpl(const UChar* characters, unsigned length, StaticStringConstructType) in StringImpl() function 90 StringImpl(unsigned length) in StringImpl() function 101 StringImpl(const UChar* characters, unsigned length) in StringImpl() function 112 StringImpl(const UChar* characters, unsigned length, PassRefPtr<StringImpl> base) in StringImpl() function 124 StringImpl(const UChar* characters, unsigned length, PassRefPtr<SharedUChar> sharedBuffer) in StringImpl() function 144 ~StringImpl(); 146 static PassRefPtr<StringImpl> create(const UChar*, unsigned length); 147 static PassRefPtr<StringImpl> create(const char*, unsigned length); 148 static PassRefPtr<StringImpl> create(const char*); [all …]
|
D | StringImpl.cpp | 42 COMPILE_ASSERT(sizeof(StringImpl) == 2 * sizeof(int) + 3 * sizeof(void*), StringImpl_should_stay_sm… 44 StringImpl::~StringImpl() in ~StringImpl() 74 PassRefPtr<StringImpl> StringImpl::createUninitialized(unsigned length, UChar*& data) in createUninitialized() 84 if (length > ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(UChar))) in createUninitialized() 86 size_t size = sizeof(StringImpl) + length * sizeof(UChar); in createUninitialized() 87 StringImpl* string = static_cast<StringImpl*>(fastMalloc(size)); in createUninitialized() 90 return adoptRef(new (string) StringImpl(length)); in createUninitialized() 93 PassRefPtr<StringImpl> StringImpl::create(const UChar* characters, unsigned length) in create() 99 RefPtr<StringImpl> string = createUninitialized(length, data); in create() 104 PassRefPtr<StringImpl> StringImpl::create(const char* characters, unsigned length) in create() [all …]
|
D | AtomicString.cpp | 51 HashSet<StringImpl*>& table() in table() 59 HashSet<StringImpl*>::iterator end = table->m_table.end(); in destroy() 60 for (HashSet<StringImpl*>::iterator iter = table->m_table.begin(); iter != end; ++iter) in destroy() 65 HashSet<StringImpl*> m_table; 68 static inline HashSet<StringImpl*>& stringTable() in stringTable() 78 static inline PassRefPtr<StringImpl> addToStringTable(const T& value) in addToStringTable() 80 …pair<HashSet<StringImpl*>::iterator, bool> addResult = stringTable().add<T, HashTranslator>(value); in addToStringTable() 93 static bool equal(StringImpl* r, const char* s) in equal() 105 static void translate(StringImpl*& location, const char* const& c, unsigned hash) in translate() 107 location = StringImpl::create(c).leakRef(); in translate() [all …]
|
D | StringHash.h | 43 static unsigned hash(StringImpl* key) { return key->hash(); } in hash() 44 static bool equal(const StringImpl* a, const StringImpl* b) in equal() 83 static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); } in hash() 84 static bool equal(const RefPtr<StringImpl>& a, const RefPtr<StringImpl>& b) in equal() 110 static unsigned hash(StringImpl* str) in hash() 120 static bool equal(const StringImpl* a, const StringImpl* b) in equal() 132 static unsigned hash(const RefPtr<StringImpl>& key) in hash() 137 static bool equal(const RefPtr<StringImpl>& a, const RefPtr<StringImpl>& b) in equal()
|
D | StringConcatenate.h | 196 PassRefPtr<StringImpl> tryMakeString(StringType1 string1, StringType2 string2) in tryMakeString() 207 RefPtr<StringImpl> resultImpl = StringImpl::tryCreateUninitialized(length, buffer); in tryMakeString() 220 PassRefPtr<StringImpl> tryMakeString(StringType1 string1, StringType2 string2, StringType3 string3) in tryMakeString() 233 RefPtr<StringImpl> resultImpl = StringImpl::tryCreateUninitialized(length, buffer); in tryMakeString() 248 PassRefPtr<StringImpl> tryMakeString(StringType1 string1, StringType2 string2, StringType3 string3,… in tryMakeString() 263 RefPtr<StringImpl> resultImpl = StringImpl::tryCreateUninitialized(length, buffer); in tryMakeString() 280 PassRefPtr<StringImpl> tryMakeString(StringType1 string1, StringType2 string2, StringType3 string3,… in tryMakeString() 297 RefPtr<StringImpl> resultImpl = StringImpl::tryCreateUninitialized(length, buffer); in tryMakeString() 316 PassRefPtr<StringImpl> tryMakeString(StringType1 string1, StringType2 string2, StringType3 string3,… in tryMakeString() 335 RefPtr<StringImpl> resultImpl = StringImpl::tryCreateUninitialized(length, buffer); in tryMakeString() [all …]
|
D | WTFString.cpp | 43 : m_impl(characters ? StringImpl::create(characters, length) : 0) in String() 60 m_impl = StringImpl::create(str, len); in String() 65 : m_impl(characters ? StringImpl::create(characters, length) : 0) in String() 71 : m_impl(characters ? StringImpl::create(characters) : 0) in String() 89 …RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + str.length(), data… in append() 108 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + 1, data); in append() 113 m_impl = StringImpl::create(&c, 1); in append() 126 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + 1, data); in append() 131 m_impl = StringImpl::create(&c, 1); in append() 177 m_impl = StringImpl::create(charactersToAppend, lengthToAppend); in append() [all …]
|
D | StringBuilder.cpp | 43 m_string = StringImpl::empty(); in reifyString() 51 : StringImpl::create(m_buffer, 0, m_length); in reifyString() 76 m_string = StringImpl::create(m_string.impl(), 0, newSize); in resize() 97 RefPtr<StringImpl> buffer = StringImpl::createUninitialized(requiredLength, m_bufferCharacters); in allocateBuffer() 166 m_string = StringImpl::createUninitialized(m_length, result); in shrinkToFit()
|
D | AtomicString.h | 48 ATOMICSTRING_CONVERSION AtomicString(StringImpl* imp) : m_string(add(imp)) { } in AtomicString() 96 static void remove(StringImpl*); 119 static PassRefPtr<StringImpl> add(const char*); 120 static PassRefPtr<StringImpl> add(const UChar*, unsigned length); 121 static PassRefPtr<StringImpl> add(const UChar*, unsigned length, unsigned existingHash); 122 static PassRefPtr<StringImpl> add(const UChar*); 123 ALWAYS_INLINE PassRefPtr<StringImpl> add(StringImpl* r) in add() 129 static PassRefPtr<StringImpl> addSlowCase(StringImpl*);
|
D | StringStatics.cpp | 39 StringImpl* StringImpl::empty() in empty() 49 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyUCharData, 0, ConstructStaticString)); in empty()
|
/external/webkit/Source/WebCore/platform/text/cf/ |
D | StringImplCF.cpp | 39 static StringImpl* currentString; 58 StringImpl* underlyingString = 0; in allocate() 66 StringImpl** header = static_cast<StringImpl**>(fastMalloc(sizeof(StringImpl*) + size)); in allocate() 73 size_t newAllocationSize = sizeof(StringImpl*) + newSize; in reallocate() 74 StringImpl** header = static_cast<StringImpl**>(pointer) - 1; in reallocate() 76 header = static_cast<StringImpl**>(fastRealloc(header, newAllocationSize)); in reallocate() 82 StringImpl** header = static_cast<StringImpl**>(headerPointer); in deallocateOnMainThread() 83 StringImpl* underlyingString = *header; in deallocateOnMainThread() 91 StringImpl** header = static_cast<StringImpl**>(pointer) - 1; in deallocate() 92 StringImpl* underlyingString = *header; in deallocate() [all …]
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | Identifier.h | 40 Identifier(ExecState* exec, StringImpl* rep) : m_string(add(exec, rep)) { } in Identifier() 45 Identifier(JSGlobalData* globalData, StringImpl* rep) : m_string(add(globalData, rep)) { } in Identifier() 49 StringImpl* impl() const { return m_string.impl(); } in impl() 76 static bool equal(const StringImpl*, const char*); 77 static bool equal(const StringImpl*, const UChar*, unsigned length); 78 static bool equal(const StringImpl* a, const StringImpl* b) { return ::equal(a, b); } in equal() 80 …static PassRefPtr<StringImpl> add(ExecState*, const char*); // Only to be used with string literal… 81 …static PassRefPtr<StringImpl> add(JSGlobalData*, const char*); // Only to be used with string lite… 89 static PassRefPtr<StringImpl> add(ExecState*, const UChar*, int length); 90 static PassRefPtr<StringImpl> add(JSGlobalData*, const UChar*, int length); [all …]
|
D | Identifier.cpp | 42 HashSet<StringImpl*>::iterator end = m_table.end(); in ~IdentifierTable() 43 for (HashSet<StringImpl*>::iterator iter = m_table.begin(); iter != end; ++iter) in ~IdentifierTable() 46 std::pair<HashSet<StringImpl*>::iterator, bool> IdentifierTable::add(StringImpl* value) in add() 48 std::pair<HashSet<StringImpl*>::iterator, bool> result = m_table.add(value); in add() 53 std::pair<HashSet<StringImpl*>::iterator, bool> IdentifierTable::add(U value) in add() 55 std::pair<HashSet<StringImpl*>::iterator, bool> result = m_table.add<U, V>(value); in add() 70 bool Identifier::equal(const StringImpl* r, const char* s) in equal() 80 bool Identifier::equal(const StringImpl* r, const UChar* s, unsigned length) in equal() 97 static bool equal(StringImpl* r, const char* s) in equal() 102 static void translate(StringImpl*& location, const char* c, unsigned hash) in translate() [all …]
|
D | UString.h | 48 UString(StringImpl* impl) : m_impl(impl) { } in UString() 49 UString(PassRefPtr<StringImpl> impl) : m_impl(impl) { } in UString() 50 UString(RefPtr<StringImpl> impl) : m_impl(impl) { } in UString() 58 … static UString adopt(Vector<UChar, inlineCapacity>& vector) { return StringImpl::adopt(vector); } in adopt() 63 StringImpl* impl() const { return m_impl.get(); } in impl() 113 RefPtr<StringImpl> m_impl; 118 StringImpl* rep1 = s1.impl(); 119 StringImpl* rep2 = s2.impl(); 190 static unsigned hash(StringImpl* key) { return key->hash(); } in hash() 191 static bool equal(const StringImpl* a, const StringImpl* b) in equal() [all …]
|
D | SmallStrings.cpp | 46 StringImpl* rep(unsigned char character) in rep() 54 RefPtr<StringImpl> m_reps[singleCharacterStringCount]; 60 …RefPtr<StringImpl> baseString = StringImpl::createUninitialized(singleCharacterStringCount, charac… in SmallStringsStorage() 63 m_reps[i] = StringImpl::create(baseString, i, 1); in SmallStringsStorage() 136 …rStrings[character] = new (globalData) JSString(globalData, PassRefPtr<StringImpl>(m_storage->rep(… in createSingleCharacterString() 139 StringImpl* SmallStrings::singleCharacterStringRep(unsigned char character) in singleCharacterStringRep()
|
D | UStringConcatenate.h | 63 PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2); in makeUString() 72 PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3); in makeUString() 81 PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3, string4); in makeUString() 90 …PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3, string4, string5… in makeUString() 99 …PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3, string4, string5… in makeUString() 108 …PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3, string4, string5… in makeUString() 117 …PassRefPtr<StringImpl> resultImpl = WTF::tryMakeString(string1, string2, string3, string4, string5… in makeUString()
|
D | JSString.cpp | 53 if (PassRefPtr<StringImpl> newImpl = StringImpl::tryCreateUninitialized(m_length, buffer)) in resolveRope() 85 StringImpl* string = static_cast<StringImpl*>(currentFiber); in resolveRope() 88 StringImpl::copyChars(position, string->characters(), length); in resolveRope() 131 StringImpl* fiberString = *it; in substringFromRope() 141 …substringFibers[substringFiberCount++] = UString(StringImpl::create(fiberString, copyStart - fiber… in substringFromRope() 178 StringImpl* matchString = 0; in replaceCharacter() 185 StringImpl* string = *it; in replaceCharacter() 200 StringImpl* string = *it; in replaceCharacter()
|
D | PropertyNameArray.h | 72 void add(StringImpl*); 73 …void addKnownUnique(StringImpl* identifier) { m_data->propertyNameVector().append(Identifier(m_glo… in addKnownUnique() 89 typedef HashSet<StringImpl*, PtrHash<StringImpl*> > IdentifierSet;
|
/external/webkit/Source/WebCore/rendering/ |
D | RenderTextFragment.h | 36 RenderTextFragment(Node*, StringImpl*, int startOffset, int length); 37 RenderTextFragment(Node*, StringImpl*); 50 StringImpl* contentString() const { return m_contentString.get(); } in contentString() 51 virtual PassRefPtr<StringImpl> originalText() const; 57 virtual void setTextInternal(PassRefPtr<StringImpl>); 63 RefPtr<StringImpl> m_contentString;
|
D | RenderTextFragment.cpp | 31 RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str, int startOffset, int length) in RenderTextFragment() 39 RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str) in RenderTextFragment() 52 PassRefPtr<StringImpl> RenderTextFragment::originalText() const in originalText() 55 …RefPtr<StringImpl> result = ((e && e->isTextNode()) ? static_cast<Text*>(e)->dataImpl() : contentS… in originalText() 78 void RenderTextFragment::setTextInternal(PassRefPtr<StringImpl> text) in setTextInternal() 98 …StringImpl* original = ((e && e->isTextNode()) ? static_cast<Text*>(e)->dataImpl() : contentStrin… in previousCharacter()
|
D | RenderText.h | 35 RenderText(Node*, PassRefPtr<StringImpl>); 45 virtual PassRefPtr<StringImpl> originalText() const; 53 StringImpl* text() const { return m_text.impl(); } in text() 94 void setText(PassRefPtr<StringImpl>, bool force = false); 95 … void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len, bool force = false); 140 virtual void setTextInternal(PassRefPtr<StringImpl>);
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | WTFThreadData.h | 53 typedef HashMap<const char*, RefPtr<StringImpl>, PtrHash<const char*> > LiteralIdentifierTable; 60 std::pair<HashSet<StringImpl*>::iterator, bool> add(StringImpl* value); 62 std::pair<HashSet<StringImpl*>::iterator, bool> add(U value); 64 bool remove(StringImpl* r) in remove() 66 HashSet<StringImpl*>::iterator iter = m_table.find(r); in remove() 76 HashSet<StringImpl*> m_table;
|
/external/webkit/Source/WebCore/dom/ |
D | CharacterData.h | 43 StringImpl* dataImpl() { return m_data.get(); } in dataImpl() 52 , m_data(text.impl() ? text.impl() : StringImpl::empty()) in CharacterData() 59 void setDataImpl(PassRefPtr<StringImpl> impl) { m_data = impl; } in setDataImpl() 60 void dispatchModifiedEvent(StringImpl* oldValue); 68 …void setDataAndUpdate(PassRefPtr<StringImpl>, unsigned offsetOfReplacedData, unsigned oldLength, u… 72 RefPtr<StringImpl> m_data;
|
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/ |
D | InjectedBundlePageEditorClient.h | 51 …bool shouldInsertText(WebPage*, StringImpl*, WebCore::Range* rangeToReplace, WebCore::EditorInsert… 55 void didBeginEditing(WebPage*, StringImpl* notificationName); 56 void didEndEditing(WebPage*, StringImpl* notificationName); 57 void didChange(WebPage*, StringImpl* notificationName); 58 void didChangeSelection(WebPage*, StringImpl* notificationName);
|
/external/webkit/Source/WebCore/bridge/jni/v8/ |
D | JavaStringV8.h | 47 m_impl = StringImpl::create(jChars, size); in init() 58 StringImpl* impl() const { return m_impl.get(); } in impl() 61 RefPtr<StringImpl> m_impl;
|
/external/webkit/Source/JavaScriptCore/parser/ |
D | SourceProviderCacheItem.h | 42 static const unsigned assummedAverageIdentifierSize = sizeof(RefPtr<StringImpl>) + 2; in approximateByteSize() 62 Vector<RefPtr<StringImpl> > usedVariables; 63 Vector<RefPtr<StringImpl> > writtenVariables;
|