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

Issue 2900703002: [es2015] Precompute the descriptive string for symbols. (Closed)

Created:
3 years, 7 months ago by Benedikt Meurer
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, Hannes Payer (out of office), v8-ppc-ports_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[es2015] Precompute the descriptive string for symbols. Previously the String constructor and the Symbol.prototype.toString methods had to compute the descriptive string for a Symbol on the fly, which can produce a lot of garbage when this happens a lot, i.e. when the String representation of a Symbol is used often. Now instead of doing this on-demand we can just do it upfront when creating the Symbol. That way we also ensure that we won't throw an exception when accessing the descriptive string of a Symbol, due to potential String length overflow, but have the exception during Symbol creation upfront, which is a lot less surprising behavior. BUG=v8:6278, v8:6344, v8:6350 TBR=mlippautz@chromium.org R=ishell@chromium.org Review-Url: https://codereview.chromium.org/2900703002 Cr-Commit-Position: refs/heads/master@{#45479} Committed: https://chromium.googlesource.com/v8/v8/+/e87573822e1c0c041c03f2b60599b0ab9256422f

Patch Set 1 #

Patch Set 2 : Fix compile in MIPS. #

Total comments: 10

Patch Set 3 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -83 lines) Patch
M src/api.cc View 2 chunks +18 lines, -6 lines 0 comments Download
M src/builtins/arm/builtins-arm.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M src/builtins/builtins-symbol.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/builtins/builtins-symbol-gen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 1 chunk +2 lines, -6 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M src/factory.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 chunks +30 lines, -0 lines 0 comments Download
M src/heap-symbols.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/heap.cc View 3 chunks +9 lines, -10 lines 0 comments Download
M src/isolate.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/objects.h View 2 chunks +6 lines, -1 line 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-symbol.cc View 3 chunks +4 lines, -20 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Benedikt Meurer
3 years, 7 months ago (2017-05-22 08:57:31 UTC) #1
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2900703002/diff/20001/src/builtins/mips64/builtins-mips64.cc File src/builtins/mips64/builtins-mips64.cc (right): https://codereview.chromium.org/2900703002/diff/20001/src/builtins/mips64/builtins-mips64.cc#newcode303 src/builtins/mips64/builtins-mips64.cc:303: __ ld(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset)); Usually we ...
3 years, 7 months ago (2017-05-23 07:08:24 UTC) #10
Benedikt Meurer
https://codereview.chromium.org/2900703002/diff/20001/src/builtins/mips64/builtins-mips64.cc File src/builtins/mips64/builtins-mips64.cc (right): https://codereview.chromium.org/2900703002/diff/20001/src/builtins/mips64/builtins-mips64.cc#newcode303 src/builtins/mips64/builtins-mips64.cc:303: __ ld(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset)); On 2017/05/23 07:08:23, Igor Sheludko ...
3 years, 7 months ago (2017-05-23 08:37:40 UTC) #11
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/2900703002/40001
3 years, 7 months ago (2017-05-23 08:40:47 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/e87573822e1c0c041c03f2b60599b0ab9256422f
3 years, 7 months ago (2017-05-23 09:49:18 UTC) #20
Michael Lippautz
On 2017/05/23 09:49:18, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as ...
3 years, 7 months ago (2017-05-23 11:16:12 UTC) #21
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2903533002/ by machenbach@chromium.org. ...
3 years, 7 months ago (2017-05-23 11:57:54 UTC) #22
Michael Achenbach
3 years, 7 months ago (2017-05-23 12:58:06 UTC) #23
Message was sent while issue was closed.
Turned green after revert:
https://build.chromium.org/p/client.v8/builders/V8%20Win32%20-%20debug/builds...

Powered by Google App Engine
This is Rietveld 408576698