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

Issue 2111653004: Simplify AtomicStringTable and remove lots of dead code. (Closed)

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

Description

Simplify AtomicStringTable and remove lots of dead code. The special path for doing substring additions only made sense when we shared StringImpls for substrings, now that we don't there's no reason to keep it. The code was dead either way with nothing calling it anymore. I also removed constructors for AtomicString that no one used and switched to using lengthOfNullTerminatedString directly in AtomicString instead of having a separate code path in AtomicStringTable for finding the length of UChar* strings. Finally I simplified AtomicStringTable::remove which was using a find codepath designed to find a string that may not exist in the table without actually allocating a new string. This doesn't make sense since remove is only ever called from StringImpl's destructor on a string we already know to be atomic so it must be in the table and must have a hash so we can just do m_table.remove on it. Committed: https://crrev.com/dcb58b3f64ef0a0f41c3ebc609364fed0e302472 Cr-Commit-Position: refs/heads/master@{#403408}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -143 lines) Patch
M third_party/WebKit/Source/wtf/text/AtomicString.h View 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.cpp View 2 chunks +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicStringTable.h View 2 chunks +6 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp View 3 chunks +2 lines, -116 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111653004/1
4 years, 5 months ago (2016-07-01 01:33:54 UTC) #2
esprehn
4 years, 5 months ago (2016-07-01 02:08:02 UTC) #4
haraken
LGTM
4 years, 5 months ago (2016-07-01 02:23:03 UTC) #5
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/2111653004/1
4 years, 5 months ago (2016-07-01 02:39:10 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-01 04:05:11 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 04:05:14 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 04:07:08 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dcb58b3f64ef0a0f41c3ebc609364fed0e302472
Cr-Commit-Position: refs/heads/master@{#403408}

Powered by Google App Engine
This is Rietveld 408576698