Changeset 184006 in webkit
- Timestamp:
- May 8, 2015, 12:23:25 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
runtime/JSONObject.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r183988 r184006 1 2015-05-08 Andreas Kling <akling@apple.com> 2 3 Micro-optimize JSON serialization of string primitives. 4 <https://webkit.org/b/144800> 5 6 Reviewed by Sam Weinig. 7 8 Don't use the out-of-line JSValue::getString() to grab at string primitives 9 in serialization. Just check if it's a JSString and then downcast to grab at 10 the WTF::String inside. 11 12 2% progression on Kraken/json-stringify-tinderbox. 13 14 * runtime/JSONObject.cpp: 15 (JSC::Stringifier::appendStringifiedValue): 16 1 17 2015-05-08 Andreas Kling <akling@apple.com> 2 18 -
trunk/Source/JavaScriptCore/runtime/JSONObject.cpp
r183988 r184006 316 316 } 317 317 318 String stringValue; 319 if (value.getString(m_exec, stringValue)) { 320 builder.appendQuotedJSONString(stringValue); 318 if (value.isString()) { 319 builder.appendQuotedJSONString(asString(value)->value(m_exec)); 321 320 return StringifySucceeded; 322 321 }
Note:
See TracChangeset
for help on using the changeset viewer.