Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Issue 1764973002: WTF::HashTable: Implement move semantics for keys and values. (Closed)

Created:
4 years, 9 months ago by Yuta Kitamura
Modified:
4 years, 9 months ago
Reviewers:
haraken, tzik, Mikhail
CC:
chromium-reviews, aboxhall, aboxhall+watch_chromium.org, nektar+watch_chromium.org, sof, eae+blinkwatch, nektarios, yuzo+watch_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, dmazzoni, blink-reviews-bindings_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, blink-reviews, je_julie, blink-reviews-wtf_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WTF::HashTable: Implement move semantics for keys and values. This patch essentially updates all value-accepting member functions so they could accept universal references instead of const lvalue references. Some use sites need to be updated so the types of the arguments are correctly inferred. This patch only touches HashMap, and the other HashTable-based containers will be done later. They can be fixed in the same way as HashMap. BUG=567139, 582349 Committed: https://crrev.com/893a6b1187d3316943fcf19cee65aa5ab22fef7f Cr-Commit-Position: refs/heads/master@{#379527}

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -34 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SpaceSplitString.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/HashMap.h View 6 chunks +24 lines, -16 lines 2 comments Download
M third_party/WebKit/Source/wtf/HashMapTest.cpp View 1 chunk +172 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 6 chunks +9 lines, -9 lines 4 comments Download
M third_party/WebKit/Source/wtf/HashTraits.h View 2 chunks +8 lines, -5 lines 2 comments Download

Messages

Total messages: 21 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1764973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1764973002/1
4 years, 9 months ago (2016-03-04 11:07:05 UTC) #2
Yuta Kitamura
PTAL
4 years, 9 months ago (2016-03-04 12:26:37 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 12:30:09 UTC) #6
Mikhail
https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h File third_party/WebKit/Source/wtf/HashMap.h (right): https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h#newcode376 third_party/WebKit/Source/wtf/HashMap.h:376: HashMap<T, U, V, W, X, Y>::inlineAdd(IncomingKeyType&& key, IncomingMappedType&& mapped) ...
4 years, 9 months ago (2016-03-04 12:58:02 UTC) #7
Yuta Kitamura
https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h File third_party/WebKit/Source/wtf/HashMap.h (right): https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h#newcode376 third_party/WebKit/Source/wtf/HashMap.h:376: HashMap<T, U, V, W, X, Y>::inlineAdd(IncomingKeyType&& key, IncomingMappedType&& mapped) ...
4 years, 9 months ago (2016-03-04 13:55:37 UTC) #8
Mikhail
On 2016/03/04 13:55:37, Yuta Kitamura wrote: > https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h > File third_party/WebKit/Source/wtf/HashMap.h (right): > > https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashMap.h#newcode376 ...
4 years, 9 months ago (2016-03-04 14:19:26 UTC) #9
tzik
https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashTable.h File third_party/WebKit/Source/wtf/HashTable.h (right): https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashTable.h#newcode810 third_party/WebKit/Source/wtf/HashTable.h:810: unsigned h = HashTranslator::hash(key); This is not directly related ...
4 years, 9 months ago (2016-03-04 15:29:59 UTC) #10
tzik
lgtm
4 years, 9 months ago (2016-03-07 03:50:10 UTC) #11
haraken
LGTM
4 years, 9 months ago (2016-03-07 04:12:14 UTC) #12
Yuta Kitamura
Mikhail: From the next time, please reply from the inline comments so your replies would ...
4 years, 9 months ago (2016-03-07 04:24:37 UTC) #13
Yuta Kitamura
https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashTable.h File third_party/WebKit/Source/wtf/HashTable.h (right): https://codereview.chromium.org/1764973002/diff/1/third_party/WebKit/Source/wtf/HashTable.h#newcode810 third_party/WebKit/Source/wtf/HashTable.h:810: unsigned h = HashTranslator::hash(key); On 2016/03/04 15:29:59, tzik wrote: ...
4 years, 9 months ago (2016-03-07 04:36:27 UTC) #14
Mikhail
lgtm
4 years, 9 months ago (2016-03-07 07:11:23 UTC) #15
Yuta Kitamura
Thanks!
4 years, 9 months ago (2016-03-07 07:11:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1764973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1764973002/1
4 years, 9 months ago (2016-03-07 07:12:19 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-07 08:34:46 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 08:35:41 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/893a6b1187d3316943fcf19cee65aa5ab22fef7f
Cr-Commit-Position: refs/heads/master@{#379527}

Powered by Google App Engine
This is Rietveld 408576698