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

Issue 2740373002: Cleaning up base::Value assignment. (Closed)

Created:
3 years, 9 months ago by dyaroshev
Modified:
3 years, 9 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, Alexander Yashkin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

1 - Removing checks for self-assignment from base::Value. Discussion on self-assignment: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/ZzfGfgruHxc 2 - Always destroying and creating instead of InternalMoveAssign. BUG=646113 Review-Url: https://codereview.chromium.org/2740373002 Cr-Commit-Position: refs/heads/master@{#458101} Committed: https://chromium.googlesource.com/chromium/src/+/534a0fda6258fcff015ea6a95f9fba981596c07e

Patch Set 1 : Removing check for self-assignment. #

Total comments: 2

Patch Set 2 : Always destroy in move. #

Total comments: 8

Patch Set 3 : Review, round 1. #

Patch Set 4 : Review, round 2. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -42 lines) Patch
M base/values.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M base/values.cc View 1 2 3 4 3 chunks +11 lines, -41 lines 0 comments Download

Messages

Total messages: 45 (16 generated)
dyaroshev
On 2017/03/10 18:33:09, dyaroshev wrote: > mailto:dyaroshev@yandex-team.ru changed reviewers: > + mailto:brettw@chromium.org, mailto:dcheng@chromium.org, mailto:jdoerrie@chromium.org Since ...
3 years, 9 months ago (2017-03-10 18:36:02 UTC) #4
dcheng
https://codereview.chromium.org/2740373002/diff/20001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2740373002/diff/20001/base/values.cc#newcode190 base/values.cc:190: InternalMoveAssignFromSameType(std::move(that)); We should just remove the branch entirely if ...
3 years, 9 months ago (2017-03-10 18:40:15 UTC) #5
dyaroshev
https://codereview.chromium.org/2740373002/diff/20001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2740373002/diff/20001/base/values.cc#newcode190 base/values.cc:190: InternalMoveAssignFromSameType(std::move(that)); On 2017/03/10 18:40:15, dcheng wrote: > We should ...
3 years, 9 months ago (2017-03-10 18:54:57 UTC) #6
dcheng
LGTM with one nit https://codereview.chromium.org/2740373002/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2740373002/diff/40001/base/values.cc#newcode188 base/values.cc:188: DCHECK(this != &that) << " ...
3 years, 9 months ago (2017-03-11 06:30:07 UTC) #7
jdoerrie
On 2017/03/11 06:30:07, dcheng wrote: > LGTM with one nit > > https://codereview.chromium.org/2740373002/diff/40001/base/values.cc > File ...
3 years, 9 months ago (2017-03-11 13:09:49 UTC) #8
dyaroshev
On 2017/03/11 13:09:49, jdoerrie wrote: > On 2017/03/11 06:30:07, dcheng wrote: > > LGTM with ...
3 years, 9 months ago (2017-03-11 23:52:10 UTC) #9
dcheng
On 2017/03/11 23:52:10, dyaroshev wrote: > On 2017/03/11 13:09:49, jdoerrie wrote: > > On 2017/03/11 ...
3 years, 9 months ago (2017-03-12 02:25:44 UTC) #10
jdoerrie
> These are very interesting results. What platform/compiler you were measuring > on? I obtained ...
3 years, 9 months ago (2017-03-13 08:45:42 UTC) #12
vabr (Chromium)
I fail to see the issue with the CHECKs -- they are simple int comparisons, ...
3 years, 9 months ago (2017-03-13 10:56:02 UTC) #13
dyaroshev
On 2017/03/11 13:09:49, jdoerrie wrote: > On 2017/03/11 06:30:07, dcheng wrote: > > LGTM with ...
3 years, 9 months ago (2017-03-13 20:55:07 UTC) #14
dyaroshev
https://codereview.chromium.org/2740373002/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2740373002/diff/40001/base/values.cc#newcode179 base/values.cc:179: // this is not a self assignment because the ...
3 years, 9 months ago (2017-03-13 21:15:42 UTC) #15
dcheng
https://codereview.chromium.org/2740373002/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2740373002/diff/40001/base/values.cc#newcode530 base/values.cc:530: CHECK_EQ(type_, that.type_); On 2017/03/13 21:15:42, dyaroshev wrote: > On ...
3 years, 9 months ago (2017-03-14 05:08:02 UTC) #16
vabr (Chromium)
On 2017/03/14 05:08:02, dcheng wrote: > https://codereview.chromium.org/2740373002/diff/40001/base/values.cc > File base/values.cc (right): > > https://codereview.chromium.org/2740373002/diff/40001/base/values.cc#newcode530 > ...
3 years, 9 months ago (2017-03-14 08:13:46 UTC) #17
jdoerrie
> Ok, these are my results - they tell the opposite. > Mac, clang. > ...
3 years, 9 months ago (2017-03-14 08:41:04 UTC) #18
dyaroshev
On 2017/03/14 08:41:04, jdoerrie wrote: > > This again is on a 64 bit Linux ...
3 years, 9 months ago (2017-03-14 09:56:53 UTC) #19
dyaroshev
On 2017/03/14 08:13:46, vabr (Chromium) wrote: > On 2017/03/14 05:08:02, dcheng wrote: > > https://codereview.chromium.org/2740373002/diff/40001/base/values.cc ...
3 years, 9 months ago (2017-03-15 20:04:48 UTC) #20
vabr (Chromium)
On 2017/03/15 20:04:48, dyaroshev wrote: > On 2017/03/14 08:13:46, vabr (Chromium) wrote: > > On ...
3 years, 9 months ago (2017-03-16 08:36:49 UTC) #21
dcheng
On 2017/03/16 08:36:49, vabr (Chromium) wrote: > On 2017/03/15 20:04:48, dyaroshev wrote: > > On ...
3 years, 9 months ago (2017-03-16 08:39:06 UTC) #22
vabr (Chromium)
On 2017/03/16 08:39:06, dcheng wrote: > On 2017/03/16 08:36:49, vabr (Chromium) wrote: > > On ...
3 years, 9 months ago (2017-03-16 08:46:27 UTC) #23
jdoerrie
On 2017/03/14 09:56:53, dyaroshev wrote: > On 2017/03/14 08:41:04, jdoerrie wrote: > > > > ...
3 years, 9 months ago (2017-03-16 13:55:50 UTC) #24
dyaroshev
On 2017/03/16 13:55:50, jdoerrie wrote: > On 2017/03/14 09:56:53, dyaroshev wrote: > > On 2017/03/14 ...
3 years, 9 months ago (2017-03-16 21:02:51 UTC) #25
dcheng
On 2017/03/16 21:02:51, dyaroshev wrote: > On 2017/03/16 13:55:50, jdoerrie wrote: > > On 2017/03/14 ...
3 years, 9 months ago (2017-03-16 21:11:33 UTC) #26
dyaroshev
On 2017/03/16 21:11:33, dcheng wrote: > On 2017/03/16 21:02:51, dyaroshev wrote: > > On 2017/03/16 ...
3 years, 9 months ago (2017-03-16 21:12:54 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2740373002/80001
3 years, 9 months ago (2017-03-16 21:53:04 UTC) #33
commit-bot: I haz the power
Failed to apply patch for base/values.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-17 00:48:45 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2740373002/100001
3 years, 9 months ago (2017-03-17 18:17:31 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/386153)
3 years, 9 months ago (2017-03-17 22:34:03 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2740373002/100001
3 years, 9 months ago (2017-03-20 14:44:05 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 17:05:15 UTC) #45
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/534a0fda6258fcff015ea6a95f9f...

Powered by Google App Engine
This is Rietveld 408576698