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

Issue 1505773002: Teach WTF::Vector to work with move-only types (Closed)

Created:
5 years ago by Mikhail
Modified:
4 years, 12 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Teach WTF::Vector to work with move-only types The unit tests were added as well. BUG=567139 Committed: https://crrev.com/75c7843dcb738620b94332bc4d744dcdf38dbdec Cr-Commit-Position: refs/heads/master@{#366966}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Comments from Yuta Kitamura #

Patch Set 3 : Fix crashes #

Total comments: 8

Patch Set 4 : review comments #

Total comments: 14

Patch Set 5 : VectorTest.MoveOnlyType fixes #

Total comments: 1

Patch Set 6 : Comments from danakj #

Total comments: 6

Patch Set 7 : Comments from Nico #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -29 lines) Patch
M third_party/WebKit/Source/wtf/Vector.h View 1 2 3 4 5 6 11 chunks +32 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/wtf/VectorTest.cpp View 1 2 3 4 5 6 3 chunks +80 lines, -1 line 0 comments Download

Messages

Total messages: 39 (10 generated)
Yuta Kitamura
Before we land this, we need to consider what we should do for WTF::forward(). Rvalue ...
5 years ago (2015-12-08 06:44:01 UTC) #4
Mikhail
On 2015/12/08 06:44:01, Yuta Kitamura wrote: > Before we land this, we need to consider ...
5 years ago (2015-12-09 13:37:19 UTC) #5
Yuta Kitamura
On 2015/12/09 13:37:19, Mikhail wrote: > On 2015/12/08 06:44:01, Yuta Kitamura wrote: > > Before ...
5 years ago (2015-12-10 02:33:22 UTC) #6
Mikhail
On 2015/12/10 02:33:22, Yuta Kitamura wrote: > On 2015/12/09 13:37:19, Mikhail wrote: > > On ...
5 years ago (2015-12-10 09:25:28 UTC) #7
Yuta Kitamura
On 2015/12/10 09:25:28, Mikhail wrote: > On 2015/12/10 02:33:22, Yuta Kitamura wrote: > > On ...
5 years ago (2015-12-11 03:23:15 UTC) #8
Yuta Kitamura
I say LGTM just to cancel my red bit, but you really need to fix ...
5 years ago (2015-12-15 10:43:53 UTC) #9
Yuta Kitamura
https://codereview.chromium.org/1505773002/diff/1/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/1/third_party/WebKit/Source/wtf/Vector.h#newcode1146 third_party/WebKit/Source/wtf/Vector.h:1146: ANNOTATE_CHANGE_SIZE(begin(), capacity(), m_size, m_size + 1); Remove the unnecessary ...
5 years ago (2015-12-15 10:45:32 UTC) #10
Yuta Kitamura
And also, check-webkit-style must be fixed before landing (I think presubmit errors will block landing).
5 years ago (2015-12-15 10:47:40 UTC) #11
Mikhail
https://codereview.chromium.org/1505773002/diff/1/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/1/third_party/WebKit/Source/wtf/Vector.h#newcode1146 third_party/WebKit/Source/wtf/Vector.h:1146: ANNOTATE_CHANGE_SIZE(begin(), capacity(), m_size, m_size + 1); On 2015/12/15 10:45:32, ...
5 years ago (2015-12-15 11:07:44 UTC) #12
Mikhail
On 2015/12/15 10:43:53, Yuta Kitamura wrote: > I say LGTM just to cancel my red ...
5 years ago (2015-12-15 11:12:12 UTC) #13
Yuta Kitamura
On 2015/12/15 11:12:12, Mikhail wrote: > On 2015/12/15 10:43:53, Yuta Kitamura wrote: > > I ...
5 years ago (2015-12-15 11:53:35 UTC) #15
Yuta Kitamura
There seems to be some crashes that both of us failed to address. PluginPowerSaverBrowserTest.* looks ...
5 years ago (2015-12-15 12:05:07 UTC) #16
Mikhail
On 2015/12/15 12:05:07, Yuta Kitamura wrote: > There seems to be some crashes that both ...
5 years ago (2015-12-15 18:14:31 UTC) #17
danakj
https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h#newcode748 third_party/WebKit/Source/wtf/Vector.h:748: template <typename U> void append(U&&); It's interesting that Vector ...
5 years ago (2015-12-15 22:35:24 UTC) #19
esprehn
https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h#newcode748 third_party/WebKit/Source/wtf/Vector.h:748: template <typename U> void append(U&&); On 2015/12/15 at 22:35:23, ...
5 years ago (2015-12-15 23:46:47 UTC) #20
Yuta Kitamura
https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h#newcode1183 third_party/WebKit/Source/wtf/Vector.h:1183: typename std::remove_reference<U>::type* ptr = &val; On 2015/12/15 22:35:23, danakj ...
5 years ago (2015-12-16 03:23:49 UTC) #21
Mikhail
https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/40001/third_party/WebKit/Source/wtf/Vector.h#newcode1183 third_party/WebKit/Source/wtf/Vector.h:1183: typename std::remove_reference<U>::type* ptr = &val; On 2015/12/15 22:35:23, danakj ...
5 years ago (2015-12-16 21:01:50 UTC) #22
danakj
https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp File third_party/WebKit/Source/wtf/VectorTest.cpp (right): https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp#newcode268 third_party/WebKit/Source/wtf/VectorTest.cpp:268: ASSERT_EQ(1, first.value()); nit: just vector.first().value() here? https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp#newcode272 third_party/WebKit/Source/wtf/VectorTest.cpp:272: for ...
5 years ago (2015-12-16 21:10:35 UTC) #23
danakj
https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp File third_party/WebKit/Source/wtf/VectorTest.cpp (right): https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp#newcode302 third_party/WebKit/Source/wtf/VectorTest.cpp:302: EXPECT_EQ(0u, vector.size()); On 2015/12/16 21:10:34, danakj (behind on reviews) ...
5 years ago (2015-12-16 21:15:12 UTC) #24
Mikhail
https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp File third_party/WebKit/Source/wtf/VectorTest.cpp (right): https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp#newcode268 third_party/WebKit/Source/wtf/VectorTest.cpp:268: ASSERT_EQ(1, first.value()); On 2015/12/16 21:10:34, danakj (behind on reviews) ...
5 years ago (2015-12-18 13:26:42 UTC) #25
danakj
Thanks, non-owner LGTM w/ a couple last comments. https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp File third_party/WebKit/Source/wtf/VectorTest.cpp (right): https://codereview.chromium.org/1505773002/diff/60001/third_party/WebKit/Source/wtf/VectorTest.cpp#newcode272 third_party/WebKit/Source/wtf/VectorTest.cpp:272: for ...
5 years ago (2015-12-18 19:05:50 UTC) #26
Mikhail
On 2015/12/18 19:05:50, danakj (behind on reviews) wrote: > Thanks, non-owner LGTM w/ a couple ...
5 years ago (2015-12-22 09:25:10 UTC) #27
Nico
lgtm with comments, thanks! https://codereview.chromium.org/1505773002/diff/100001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/100001/third_party/WebKit/Source/wtf/Vector.h#newcode757 third_party/WebKit/Source/wtf/Vector.h:757: template <typename U> void prepend(U&&); ...
5 years ago (2015-12-22 15:43:24 UTC) #28
Mikhail
https://codereview.chromium.org/1505773002/diff/100001/third_party/WebKit/Source/wtf/Vector.h File third_party/WebKit/Source/wtf/Vector.h (right): https://codereview.chromium.org/1505773002/diff/100001/third_party/WebKit/Source/wtf/Vector.h#newcode1161 third_party/WebKit/Source/wtf/Vector.h:1161: typename std::remove_reference<U>::type* ptr = &val; On 2015/12/22 15:43:23, Nico ...
5 years ago (2015-12-23 11:59:23 UTC) #29
Nico
lgtm if I guessed the motivation correctly (or with a different good motivation :-) ) ...
5 years ago (2015-12-23 21:50:07 UTC) #30
Mikhail
On 2015/12/23 21:50:07, Nico wrote: > lgtm if I guessed the motivation correctly (or with ...
4 years, 12 months ago (2015-12-28 09:10:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505773002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505773002/120001
4 years, 12 months ago (2015-12-28 09:11:34 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 12 months ago (2015-12-28 10:44:40 UTC) #37
commit-bot: I haz the power
4 years, 12 months ago (2015-12-28 10:45:30 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/75c7843dcb738620b94332bc4d744dcdf38dbdec
Cr-Commit-Position: refs/heads/master@{#366966}

Powered by Google App Engine
This is Rietveld 408576698