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

Issue 2493723003: [inspector] Fix and refactor String16 (Closed)

Created:
4 years, 1 month ago by Clemens Hammacher
Modified:
4 years, 1 month ago
Reviewers:
kozy, dgozman, Yang
CC:
devtools-reviews_chromium.org, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] Fix and refactor String16 This CL defines move semantics for String16, and fixes issues with the hash code not being set correctly on swap or copy. It also extends the interface by a few handy templates. All this functionality will be used for the wasm translations, where String16s are often concatenated and used as keys in hash tables. BUG=chromium:659715 R=yangguo@chromium.org, kozyatinskiy@chromium.org Committed: https://crrev.com/c9c6c1a393b2f662e130169ef21864b5a89e8cb3 Cr-Commit-Position: refs/heads/master@{#41007}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address Dmitry's comments #

Patch Set 3 : Define default copy and move constructors and assign operators #

Patch Set 4 : Windows unhappy; revert last patch and define move assignment manually #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -32 lines) Patch
M src/inspector/string-16.h View 1 2 3 4 chunks +63 lines, -30 lines 0 comments Download
M src/inspector/string-16.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 1 chunk +8 lines, -2 lines 2 comments Download

Depends on Patchset:

Messages

Total messages: 32 (19 generated)
Clemens Hammacher
4 years, 1 month ago (2016-11-10 21:51:31 UTC) #5
dgozman
Nice stuff! https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h File src/inspector/string-16.h (left): https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h#oldcode92 src/inspector/string-16.h:92: inline String16 operator+(const String16& a, const char* ...
4 years, 1 month ago (2016-11-11 21:41:21 UTC) #7
Clemens Hammacher
https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h File src/inspector/string-16.h (left): https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h#oldcode92 src/inspector/string-16.h:92: inline String16 operator+(const String16& a, const char* b) { ...
4 years, 1 month ago (2016-11-14 06:02:08 UTC) #8
dgozman
https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h File src/inspector/string-16.h (right): https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h#newcode79 src/inspector/string-16.h:79: if (!hash_code) ++hash_code; On 2016/11/14 06:02:07, Clemens Hammacher wrote: ...
4 years, 1 month ago (2016-11-14 20:32:52 UTC) #9
Clemens Hammacher
https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h File src/inspector/string-16.h (right): https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h#newcode118 src/inspector/string-16.h:118: void append(int); On 2016/11/14 20:32:52, dgozman wrote: > On ...
4 years, 1 month ago (2016-11-14 21:11:02 UTC) #10
dgozman
On 2016/11/14 21:11:02, Clemens Hammacher wrote: > https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h > File src/inspector/string-16.h (right): > > https://codereview.chromium.org/2493723003/diff/1/src/inspector/string-16.h#newcode118 ...
4 years, 1 month ago (2016-11-14 22:38:19 UTC) #11
Clemens Hammacher
On 2016/11/14 at 22:38:19, dgozman wrote: > On 2016/11/14 21:11:02, Clemens Hammacher wrote: > > ...
4 years, 1 month ago (2016-11-15 15:26:46 UTC) #20
dgozman
lgtm https://codereview.chromium.org/2493723003/diff/60001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2493723003/diff/60001/src/inspector/v8-debugger-agent-impl.cc#newcode79 src/inspector/v8-debugger-agent-impl.cc:79: String16Builder builder; Just curious why builder and not ...
4 years, 1 month ago (2016-11-15 15:32:25 UTC) #21
Clemens Hammacher
https://codereview.chromium.org/2493723003/diff/60001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2493723003/diff/60001/src/inspector/v8-debugger-agent-impl.cc#newcode79 src/inspector/v8-debugger-agent-impl.cc:79: String16Builder builder; On 2016/11/15 at 15:32:25, dgozman wrote: > ...
4 years, 1 month ago (2016-11-15 17:00:45 UTC) #24
commit-bot: I haz the power
This CL has an open dependency (Issue 2493823003 Patch 60001). Please resolve the dependency and ...
4 years, 1 month ago (2016-11-15 17:01:01 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/2493723003/60001
4 years, 1 month ago (2016-11-15 17:27:45 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-15 17:33:02 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:34:53 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c9c6c1a393b2f662e130169ef21864b5a89e8cb3
Cr-Commit-Position: refs/heads/master@{#41007}

Powered by Google App Engine
This is Rietveld 408576698