Changeset 69683 in webkit
- Timestamp:
- Oct 13, 2010 12:29:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/Android.mk
r64943 r69683 178 178 wtf/text/AtomicString.cpp \ 179 179 wtf/text/CString.cpp \ 180 wtf/text/StringBuilder.cpp \ 180 181 wtf/text/StringImpl.cpp \ 181 182 wtf/text/WTFString.cpp \ -
trunk/JavaScriptCore/Android.v8.wtf.mk
r57904 r69683 55 55 wtf/text/AtomicString.cpp \ 56 56 wtf/text/CString.cpp \ 57 wtf/text/StringBuidler.cpp \ 57 58 wtf/text/StringImpl.cpp \ 58 59 wtf/text/WTFString.cpp \ -
trunk/JavaScriptCore/ChangeLog
r69678 r69683 1 2010-10-13 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Bug 43987 - Downloading using XHR is much slower than before 6 Change StringBuilder to use overcapacity in a StringImpl, rather than a Vector. 7 Fundamentally this should be the same (copies current contents to expand capacity, 8 rather than using a rope), but this approach allows the intermadiate state of the 9 String to be inspected in the buffer without copying to resolve. 10 11 * runtime/JSONObject.cpp: 12 (JSC::Stringifier::appendQuotedString): 13 (JSC::Stringifier::Holder::appendNextProperty): 14 Renamed StringBuilder::size() -> length() (to match other String types). 15 16 * runtime/UStringBuilder.h: 17 (JSC::UStringBuilder::append): 18 (JSC::UStringBuilder::toUString): 19 Update for changes in parent class, can just 'using' the append methods. 20 21 * wtf/text/StringBuilder.cpp: Added. 22 (WTF::StringBuilder::reifyString): 23 (WTF::StringBuilder::resize): 24 (WTF::StringBuilder::reserveCapacity): 25 (WTF::StringBuilder::allocateBuffer): 26 (WTF::StringBuilder::appendUninitialized): 27 (WTF::StringBuilder::append): 28 (WTF::StringBuilder::shrinkToFit): 29 * wtf/text/StringBuilder.h: 30 (WTF::StringBuilder::StringBuilder): 31 (WTF::StringBuilder::append): 32 (WTF::StringBuilder::toString): 33 (WTF::StringBuilder::toStringPreserveCapacity): 34 (WTF::StringBuilder::length): 35 (WTF::StringBuilder::isEmpty): 36 (WTF::StringBuilder::operator[]): 37 (WTF::StringBuilder::clear): 38 Class updated to use overcapacity in a StringImpl, rather than a Vector. 39 40 * Android.mk: 41 * Android.v8.wtf.mk: 42 * GNUmakefile.am: 43 * JavaScriptCore.exp: 44 * JavaScriptCore.gypi: 45 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops: 46 * JavaScriptCore.vcproj/WTF/WTF.vcproj: 47 * JavaScriptCore.vcproj/jsc/jsc.vcproj: 48 * JavaScriptCore.xcodeproj/project.pbxproj: 49 * wtf/CMakeLists.txt: 50 * wtf/wtf.pri: 51 1 52 2010-10-13 Adam Roben <aroben@apple.com> 2 53 -
trunk/JavaScriptCore/GNUmakefile.am
r69663 r69683 509 509 JavaScriptCore/wtf/text/CString.h \ 510 510 JavaScriptCore/wtf/text/StringBuffer.h \ 511 JavaScriptCore/wtf/text/StringBuilder.cpp \ 511 512 JavaScriptCore/wtf/text/StringBuilder.h \ 512 513 JavaScriptCore/wtf/text/StringConcatenate.h \ -
trunk/JavaScriptCore/JavaScriptCore.exp
r69516 r69683 133 133 __ZN3JSC12JSGlobalData6createENS_15ThreadStackTypeE 134 134 __ZN3JSC12JSGlobalDataD1Ev 135 __ZN3JSC12RegExpObject4infoE 136 __ZN3JSC12RegExpObjectC1EPNS_14JSGlobalObjectEN3WTF17NonNullPassRefPtrINS_9StructureEEENS4_INS_6RegExpEEE 135 137 __ZN3JSC12SamplingTool5setupEv 136 138 __ZN3JSC12SmallStrings17createEmptyStringEPNS_12JSGlobalDataE … … 151 153 __ZN3JSC13SamplingFlags7s_flagsE 152 154 __ZN3JSC13StatementNode6setLocEii 153 __ZN3JSC14heapStatisticsEPNS_12JSGlobalDataE154 155 __ZN3JSC14JSGlobalObject10globalExecEv 155 156 __ZN3JSC14JSGlobalObject12defineGetterEPNS_9ExecStateERKNS_10IdentifierEPNS_8JSObjectEj … … 166 167 __ZN3JSC14TimeoutChecker10didTimeOutEPNS_9ExecStateE 167 168 __ZN3JSC14TimeoutChecker5resetEv 169 __ZN3JSC14heapStatisticsEPNS_12JSGlobalDataE 168 170 __ZN3JSC14throwTypeErrorEPNS_9ExecStateE 169 171 __ZN3JSC15JSWrapperObject12markChildrenERNS_9MarkStackE … … 240 242 __ZN3JSC6JSLock9lockCountEv 241 243 __ZN3JSC6JSLockC1EPNS_9ExecStateE 244 __ZN3JSC6RegExp6createEPNS_12JSGlobalDataERKNS_7UStringES5_ 245 __ZN3JSC6RegExpD1Ev 242 246 __ZN3JSC7JSArray12markChildrenERNS_9MarkStackE 243 247 __ZN3JSC7JSArray15setSubclassDataEPv … … 373 377 __ZN3WTF12isMainThreadEv 374 378 __ZN3WTF12randomNumberEv 379 __ZN3WTF13StringBuilder11reifyStringEv 380 __ZN3WTF13StringBuilder11shrinkToFitEv 381 __ZN3WTF13StringBuilder6appendEPKcj 382 __ZN3WTF13StringBuilder6appendEPKtj 383 __ZN3WTF13StringBuilder6resizeEj 375 384 __ZN3WTF13WTFThreadData10staticDataE 376 385 __ZN3WTF13WTFThreadDataC1Ev … … 485 494 __ZNK3JSC11Interpreter18retrieveLastCallerEPNS_9ExecStateERiRlRNS_7UStringERNS_7JSValueE 486 495 __ZNK3JSC12PropertySlot14functionGetterEPNS_9ExecStateE 487 __ZN3JSC12RegExpObject4infoE488 __ZN3JSC12RegExpObjectC1EPNS_14JSGlobalObjectEN3WTF17NonNullPassRefPtrINS_9StructureEEENS4_INS_6RegExpEEE489 496 __ZNK3JSC14JSGlobalObject14isDynamicScopeERb 490 497 __ZNK3JSC16InternalFunction9classInfoEv … … 517 524 __ZNK3JSC6JSCell9getUInt32ERj 518 525 __ZNK3JSC6JSCell9toBooleanEPNS_9ExecStateE 519 __ZN3JSC6RegExp6createEPNS_12JSGlobalDataERKNS_7UStringES5_520 __ZN3JSC6RegExpD1Ev521 526 __ZNK3JSC7ArgList8getSliceEiRS0_ 522 527 __ZNK3JSC7JSArray12subclassDataEv -
trunk/JavaScriptCore/JavaScriptCore.gypi
r69663 r69683 454 454 'wtf/text/CString.h', 455 455 'wtf/text/StringBuffer.h', 456 'wtf/text/StringBuilder.cpp', 456 457 'wtf/text/StringBuilder.h', 457 458 'wtf/text/StringConcatenate.h', -
trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops
r63833 r69683 20 20 <Tool 21 21 Name="VCPostBuildEventTool" 22 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\private\JavaScriptCore"

xcopy /y /d "$(ProjectDir)\..\..\wtf\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\unicode\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\parser\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\runtime\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\VM\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\bytecode\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\interpreter\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\assembler\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\jit\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\debugger\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\profiler\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\create_hash_table" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\pcre\pcre.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\AtomicString.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\String Impl.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\WTFString.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"


mkdir 2>NUL "$(OutDir)\JavaScriptCore.resources"
xcopy /y /d "$(ProjectDir)..\$(ProjectName).resources\*" "$(OutDir)\$(ProjectName).resources"

if exist "$(WebKitOutputDir)\buildfailed" del "$(WebKitOutputDir)\buildfailed"
"22 CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\include\private\JavaScriptCore"

xcopy /y /d "$(ProjectDir)\..\..\wtf\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\unicode\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\unicode\icu\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\parser\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\runtime\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\VM\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\bytecode\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\interpreter\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\assembler\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\jit\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\debugger\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\profiler\*.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\create_hash_table" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\pcre\pcre.h" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\AtomicString.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\StringBuilder.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\StringImpl.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"
xcopy /y /d "$(ProjectDir)\..\..\wtf\text\WTFString.cpp" "$(WebKitOutputDir)\include\private\JavaScriptCore"


mkdir 2>NUL "$(OutDir)\JavaScriptCore.resources"
xcopy /y /d "$(ProjectDir)..\$(ProjectName).resources\*" "$(OutDir)\$(ProjectName).resources"

if exist "$(WebKitOutputDir)\buildfailed" del "$(WebKitOutputDir)\buildfailed"
" 23 23 /> 24 24 <Tool -
trunk/JavaScriptCore/JavaScriptCore.vcproj/WTF/WTF.vcproj
r69663 r69683 614 614 </File> 615 615 <File 616 RelativePath="..\..\wtf\text\StringBuilder.cpp" 617 > 618 </File> 619 <File 616 620 RelativePath="..\..\wtf\text\StringBuilder.h" 617 621 > -
trunk/JavaScriptCore/JavaScriptCore.vcproj/jsc/jsc.vcproj
r59187 r69683 335 335 </File> 336 336 <File 337 RelativePath="$(WebKitOutputDir)\include\private\JavaScriptCore\StringBuilder.cpp" 338 > 339 </File> 340 <File 337 341 RelativePath="$(WebKitOutputDir)\include\private\JavaScriptCore\StringImpl.cpp" 338 342 > -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r69669 r69683 207 207 862AF4B612239C7B0024E5B8 /* DecimalNumber.h in Headers */ = {isa = PBXBuildFile; fileRef = 862AF4B512239C7B0024E5B8 /* DecimalNumber.h */; }; 208 208 863B23E00FC6118900703AA4 /* MacroAssemblerCodeRef.h in Headers */ = {isa = PBXBuildFile; fileRef = 863B23DF0FC60E6200703AA4 /* MacroAssemblerCodeRef.h */; settings = {ATTRIBUTES = (Private, ); }; }; 209 86438FC41265503E00E0DFCA /* StringBuilder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 86438FC31265503E00E0DFCA /* StringBuilder.cpp */; }; 209 210 86565742115BE3DA00291F40 /* CString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 86565740115BE3DA00291F40 /* CString.cpp */; }; 210 211 86565743115BE3DA00291F40 /* CString.h in Headers */ = {isa = PBXBuildFile; fileRef = 86565741115BE3DA00291F40 /* CString.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 812 813 862AF4B512239C7B0024E5B8 /* DecimalNumber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecimalNumber.h; sourceTree = "<group>"; }; 813 814 863B23DF0FC60E6200703AA4 /* MacroAssemblerCodeRef.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MacroAssemblerCodeRef.h; sourceTree = "<group>"; }; 815 86438FC31265503E00E0DFCA /* StringBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StringBuilder.cpp; path = text/StringBuilder.cpp; sourceTree = "<group>"; }; 814 816 86565740115BE3DA00291F40 /* CString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CString.cpp; path = text/CString.cpp; sourceTree = "<group>"; }; 815 817 86565741115BE3DA00291F40 /* CString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CString.h; path = text/CString.h; sourceTree = "<group>"; }; … … 1841 1843 86565741115BE3DA00291F40 /* CString.h */, 1842 1844 86B99AE1117E578100DF5A90 /* StringBuffer.h */, 1845 86438FC31265503E00E0DFCA /* StringBuilder.cpp */, 1843 1846 081469481264375E00DFF935 /* StringBuilder.h */, 1844 1847 0896C29E1265AB0900B1CDD3 /* StringConcatenate.h */, … … 2788 2791 90213E3D123A40C200D422F3 /* MemoryStatistics.cpp in Sources */, 2789 2792 A730B6131250068F009D25B1 /* StrictEvalActivation.cpp in Sources */, 2793 86438FC41265503E00E0DFCA /* StringBuilder.cpp in Sources */, 2790 2794 ); 2791 2795 runOnlyForDeploymentPostprocessing = 0; -
trunk/JavaScriptCore/runtime/JSONObject.cpp
r69663 r69683 285 285 286 286 // String length plus 2 for quote marks plus 8 so we can accomodate a few escaped characters. 287 builder.reserveCapacity(builder. size() + length + 2 + 8);287 builder.reserveCapacity(builder.length() + length + 2 + 8); 288 288 289 289 builder.append('"'); … … 522 522 if (m_index == m_size) { 523 523 stringifier.unindent(); 524 if (m_size && builder[builder. size() - 1] != '{')524 if (m_size && builder[builder.length() - 1] != '{') 525 525 stringifier.startNewLine(builder); 526 526 builder.append(m_isArray ? ']' : '}'); … … 563 563 return false; 564 564 565 rollBackPoint = builder. size();565 rollBackPoint = builder.length(); 566 566 567 567 // Append the separator string. -
trunk/JavaScriptCore/runtime/UStringBuilder.h
r69594 r69683 33 33 class UStringBuilder : public StringBuilder { 34 34 public: 35 // Forward declare these methods, otherwhise append() is ambigious. 36 void append(const UChar u) { StringBuilder::append(u); } 37 void append(const char* str) { StringBuilder::append(str); } 38 void append(const char* str, size_t len) { StringBuilder::append(str, len); } 39 void append(const UChar* str, size_t len) { StringBuilder::append(str, len); } 35 using StringBuilder::append; 36 void append(const UString& str) { append(String(str.impl())); } 40 37 41 void append(const UString& str) 42 { 43 m_buffer.append(str.characters(), str.length()); 44 } 45 46 UString toUString() 47 { 48 m_buffer.shrinkToFit(); 49 ASSERT(m_buffer.data() || !m_buffer.size()); 50 return UString::adopt(m_buffer); 51 } 38 UString toUString() { return toString().impl(); } 52 39 }; 53 40 -
trunk/JavaScriptCore/wtf/CMakeLists.txt
r65437 r69683 17 17 text/AtomicString.cpp 18 18 text/CString.cpp 19 text/StringBuilder.cpp 19 20 text/StringImpl.cpp 20 21 text/StringStatics.cpp -
trunk/JavaScriptCore/wtf/text/StringBuilder.h
r69608 r69683 1 1 /* 2 * Copyright (C) 2009 Apple Inc. All rights reserved.2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 34 34 class StringBuilder { 35 35 public: 36 void append(const UChar u) 36 StringBuilder() 37 : m_length(0) 37 38 { 38 m_buffer.append(u);39 39 } 40 40 41 void append(const char* str) 41 void append(const UChar*, unsigned); 42 void append(const char*, unsigned); 43 44 void append(const String& string) 42 45 { 43 append(str, strlen(str)); 46 // If we're appending to an empty string, and there is not buffer 47 // (in case reserveCapacity has been called) then just retain the 48 // string. 49 if (!m_length && !m_buffer) { 50 m_string = string; 51 m_length = string.length(); 52 return; 53 } 54 append(string.characters(), string.length()); 44 55 } 45 56 46 void append(const char* str, size_t len)57 void append(const char* characters) 47 58 { 48 reserveCapacity(m_buffer.size() + len); 49 for (size_t i = 0; i < len; i++) 50 m_buffer.append(static_cast<unsigned char>(str[i])); 59 if (characters) 60 append(characters, strlen(characters)); 51 61 } 52 62 53 void append( const UChar* str, size_t len)63 void append(UChar c) 54 64 { 55 m_buffer.append(str, len); 65 if (m_buffer && m_length < m_buffer->length() && m_string.isNull()) 66 m_bufferCharacters[m_length++] = c; 67 else 68 append(&c, 1); 56 69 } 57 70 58 void append(c onst String& str)71 void append(char c) 59 72 { 60 m_buffer.append(str.characters(), str.length()); 73 if (m_buffer && m_length < m_buffer->length() && m_string.isNull()) 74 m_bufferCharacters[m_length++] = (unsigned char)c; 75 else 76 append(&c, 1); 61 77 } 62 63 bool isEmpty() const { return m_buffer.isEmpty(); }64 void reserveCapacity(size_t newCapacity)65 {66 if (newCapacity < m_buffer.capacity())67 return;68 m_buffer.reserveCapacity(std::max(newCapacity, m_buffer.capacity() + m_buffer.capacity() / 4 + 1));69 }70 void resize(size_t size) { m_buffer.resize(size); }71 size_t size() const { return m_buffer.size(); }72 // FIXME: remove size(), above (strings have a length, not a size).73 // also, should return an unsigned, not a size_t.74 size_t length() const { return size(); }75 76 UChar operator[](size_t i) const { return m_buffer.at(i); }77 78 78 79 String toString() 79 80 { 80 m_buffer.shrinkToFit(); 81 ASSERT(m_buffer.data() || !m_buffer.size()); 82 return String::adopt(m_buffer); 81 if (m_string.isNull()) { 82 shrinkToFit(); 83 reifyString(); 84 } 85 return m_string; 83 86 } 84 87 85 protected: 86 Vector<UChar, 64> m_buffer; 88 String toStringPreserveCapacity() 89 { 90 if (m_string.isNull()) 91 reifyString(); 92 return m_string; 93 } 94 95 unsigned length() const 96 { 97 return m_length; 98 } 99 100 bool isEmpty() const { return !length(); } 101 102 void reserveCapacity(unsigned newCapacity); 103 104 void resize(unsigned newSize); 105 106 void shrinkToFit(); 107 108 UChar operator[](unsigned i) const 109 { 110 ASSERT(i < m_length); 111 if (!m_string.isNull()) 112 return m_string[i]; 113 ASSERT(m_buffer); 114 return m_buffer->characters()[i]; 115 } 116 117 void clear() 118 { 119 m_length = 0; 120 m_string = String(); 121 m_buffer = 0; 122 } 123 124 private: 125 void allocateBuffer(const UChar* currentCharacters, unsigned requiredLength); 126 UChar* appendUninitialized(unsigned length); 127 void reifyString(); 128 129 unsigned m_length; 130 String m_string; 131 RefPtr<StringImpl> m_buffer; 132 UChar* m_bufferCharacters; 87 133 }; 88 134 -
trunk/JavaScriptCore/wtf/wtf.pri
r67306 r69683 23 23 wtf/text/AtomicString.cpp \ 24 24 wtf/text/CString.cpp \ 25 wtf/text/StringBuilder.cpp \ 25 26 wtf/text/StringImpl.cpp \ 26 27 wtf/text/StringStatics.cpp \ -
trunk/WebCore/ChangeLog
r69682 r69683 1 2010-10-13 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Bug 43987 - Downloading using XHR is much slower than before 6 7 * svg/SVGPathStringBuilder.cpp: 8 (WebCore::SVGPathStringBuilder::result): 9 StringBuilder::size() -> StringBuilder::length(). 10 1 11 2010-10-13 Yong Li <yoli@rim.com> 2 12 -
trunk/WebCore/svg/SVGPathStringBuilder.cpp
r69594 r69683 27 27 String SVGPathStringBuilder::result() 28 28 { 29 unsigned size = m_stringBuilder. size();29 unsigned size = m_stringBuilder.length(); 30 30 if (!size) 31 31 return String(); -
trunk/WebKit/chromium/ChangeLog
r69675 r69683 1 2010-10-13 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Bug 43987 - Downloading using XHR is much slower than before 6 7 * src/WebPageSerializerImpl.cpp: 8 (WebKit::WebPageSerializerImpl::encodeAndFlushBuffer): 9 1 10 2010-10-13 Adam Barth <abarth@webkit.org> 2 11 -
trunk/WebKit/chromium/src/WebPageSerializerImpl.cpp
r69675 r69683 279 279 { 280 280 // Data buffer is not full nor do we want to force flush. 281 if (flushOption != ForceFlush && m_dataBuffer. size() <= dataBufferCapacity)281 if (flushOption != ForceFlush && m_dataBuffer.length() <= dataBufferCapacity) 282 282 return; 283 283
Note: See TracChangeset
for help on using the changeset viewer.