|
Have HashMap<KeyType, AtomicString>::get() return a const reference
Have HashMap<KeyType, AtomicString>::get() return nullAtom instead of AtomicString()
when the key cannot be found so that the method can now return a const reference.
This avoids useless copies of the AtomicString when calling HashMap::get() when the
value type is AtomicString.
This CL already makes use of this optimization in relevant call sites.
R=tkent
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163179
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+67 lines, -67 lines) |
Patch |
|
M |
Source/core/css/StyleSheetContents.cpp
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.cpp
|
View
|
1
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/fetch/CSSStyleSheetResource.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/fetch/CrossOriginAccessControl.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/html/forms/FormController.cpp
|
View
|
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/html/parser/XSSAuditor.cpp
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorPageAgent.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorPageAgent.cpp
|
View
|
1
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/FrameLoader.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/timing/Performance.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/xml/XMLHttpRequest.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/xml/XMLHttpRequest.cpp
|
View
|
1
|
4 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/platform/network/HTTPHeaderMap.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/network/HTTPHeaderMap.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/network/ResourceRequest.h
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/platform/network/ResourceRequest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/network/ResourceResponse.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/network/ResourceResponse.cpp
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/wtf/text/AtomicStringHash.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|