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

Issue 2046933002: [V8] Make String::CanMakeExternal ignore the length of new strings (Closed)

Created:
4 years, 6 months ago by peria
Modified:
4 years, 6 months ago
CC:
Paweł Hajdan Jr., v8-merges_googlegroups.com, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make String::CanMakeExternal ignore the length of new strings. It is expected that temporarily used strings die while they are in new heap. So we can avoid to pay a heavy cost to externalize them. If they are used for times, externalization will happen when they move to an old heap. BUG=chrmoium:606093 Committed: https://crrev.com/7a3150d13def19b5b4e0449fefa159b4141a1470 Cr-Commit-Position: refs/heads/master@{#36907}

Patch Set 1 : #

Patch Set 2 : Ignore the length of strings #

Total comments: 2

Patch Set 3 : Check IsExternal first #

Patch Set 4 : Remake IsOldString #

Patch Set 5 : Remove check of length #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -44 lines) Patch
M src/api.cc View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 2 chunks +8 lines, -38 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
peria
PTL. It seems difficult to skip the externalization with only Blink-side changes, because we don't ...
4 years, 6 months ago (2016-06-08 05:44:40 UTC) #6
jochen (gone - plz use gerrit)
what about changing CanMakeExternal to ignore the length for newspace strings? (in general, please document ...
4 years, 6 months ago (2016-06-08 14:57:59 UTC) #8
peria
On 2016/06/08 14:57:59, jochen wrote: > what about changing CanMakeExternal to ignore the length for ...
4 years, 6 months ago (2016-06-09 03:21:29 UTC) #10
Yang
I added a comment here: https://bugs.chromium.org/p/chromium/issues/detail?id=606093#c24 https://codereview.chromium.org/2046933002/diff/40001/src/api.cc File src/api.cc (left): https://codereview.chromium.org/2046933002/diff/40001/src/api.cc#oldcode6019 src/api.cc:6019: return !shape.IsExternal(); Why ...
4 years, 6 months ago (2016-06-09 05:45:06 UTC) #11
peria
https://codereview.chromium.org/2046933002/diff/40001/src/api.cc File src/api.cc (left): https://codereview.chromium.org/2046933002/diff/40001/src/api.cc#oldcode6019 src/api.cc:6019: return !shape.IsExternal(); On 2016/06/09 05:45:05, Yang wrote: > Why ...
4 years, 6 months ago (2016-06-09 06:51:59 UTC) #12
Yang
On 2016/06/09 06:51:59, peria wrote: > https://codereview.chromium.org/2046933002/diff/40001/src/api.cc > File src/api.cc (left): > > https://codereview.chromium.org/2046933002/diff/40001/src/api.cc#oldcode6019 > ...
4 years, 6 months ago (2016-06-09 07:13:43 UTC) #13
peria
On 2016/06/09 07:13:43, Yang wrote: > On 2016/06/09 06:51:59, peria wrote: > > https://codereview.chromium.org/2046933002/diff/40001/src/api.cc > ...
4 years, 6 months ago (2016-06-09 09:44:20 UTC) #14
Yang
On 2016/06/09 09:44:20, peria wrote: > On 2016/06/09 07:13:43, Yang wrote: > > On 2016/06/09 ...
4 years, 6 months ago (2016-06-09 09:53:33 UTC) #15
peria
On 2016/06/09 09:53:33, Yang wrote: > On 2016/06/09 09:44:20, peria wrote: > > On 2016/06/09 ...
4 years, 6 months ago (2016-06-09 10:59:55 UTC) #16
peria
On 2016/06/09 10:59:55, peria wrote: > On 2016/06/09 09:53:33, Yang wrote: > > On 2016/06/09 ...
4 years, 6 months ago (2016-06-10 07:45:27 UTC) #17
Yang
On 2016/06/10 07:45:27, peria wrote: > On 2016/06/09 10:59:55, peria wrote: > > On 2016/06/09 ...
4 years, 6 months ago (2016-06-10 10:57:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046933002/100001
4 years, 6 months ago (2016-06-11 04:44:37 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-11 05:11:26 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-11 05:13:22 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7a3150d13def19b5b4e0449fefa159b4141a1470
Cr-Commit-Position: refs/heads/master@{#36907}

Powered by Google App Engine
This is Rietveld 408576698