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

Issue 1390033003: Remove StringImpl::reallocate (Closed)

Created:
5 years, 2 months ago by hajimehoshi
Modified:
5 years, 2 months ago
Reviewers:
haraken, tasak
CC:
chromium-reviews, blink-reviews, asanka, blink-reviews-wtf_chromium.org, benjhayden+dwatch_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove StringImpl::reallocate This CL removes StringImpls::reallocate. StringImpls::reallocate's implementation is hacky (e.g. calling ~StringImpl directly) and this CL aims to improve code health. There is no performance regression. StringBuilder is only one usage of StringImpl::reallocate. StringImpl::reallocate is called only when StringBuilder's expansion happens with doubled size. In this case, according to the implementation of partitionReallocGeneric, free and malloc are sure to happen instead of reusing the same address. NOTE: StringImpl is not immutable yet because of truncateAssumingIsolated. BUG=n/a TEST=blink_tests --gtest_filter=StringBuilderTest.* Committed: https://crrev.com/2e6ad3a3d26b05e43f6274f71f670f83c0ba26e1 Cr-Commit-Position: refs/heads/master@{#353268}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -34 lines) Patch
M third_party/WebKit/Source/wtf/text/StringBuilder.cpp View 2 chunks +3 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
hajimehoshi
PTAL
5 years, 2 months ago (2015-10-09 09:09:12 UTC) #2
haraken
LGTM
5 years, 2 months ago (2015-10-09 09:18:47 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1390033003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1390033003/1
5 years, 2 months ago (2015-10-09 09:20:36 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-09 11:42:25 UTC) #6
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 11:43:17 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2e6ad3a3d26b05e43f6274f71f670f83c0ba26e1
Cr-Commit-Position: refs/heads/master@{#353268}

Powered by Google App Engine
This is Rietveld 408576698