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

Issue 2651523002: [ast] Count index keys in AST not runtime. (Closed)

Created:
3 years, 11 months ago by Franzi
Modified:
3 years, 11 months ago
Reviewers:
Toon Verwaest
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ast] Count index keys in AST not runtime. We do not want to reserve space in the backing store for index keys. Count index keys during creation of the BoilerplateDescription, and substract them for the backing store size. Correctly count index keys after encountering a property with a computed name during object literal creation. R=verwaest@chromium.org BUG=v8:5625 Review-Url: https://codereview.chromium.org/2651523002 Cr-Commit-Position: refs/heads/master@{#42598} Committed: https://chromium.googlesource.com/v8/v8/+/0d1e0a15214505f017da068cdcd9ca38c9cf53e9

Patch Set 1 #

Total comments: 1

Patch Set 2 : Treat getters with numbers as their name correctly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -14 lines) Patch
M src/ast/ast.cc View 1 2 chunks +19 lines, -1 line 0 comments Download
M src/factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-literals.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M test/cctest/test-inobject-slack-tracking.cc View 1 2 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
Franzi
Hi Toon, I removed the loop that counts index keys in the runtime function and ...
3 years, 11 months ago (2017-01-22 21:32:13 UTC) #6
Toon Verwaest
lgtm with comment https://codereview.chromium.org/2651523002/diff/1/src/ast/ast.cc File src/ast/ast.cc (right): https://codereview.chromium.org/2651523002/diff/1/src/ast/ast.cc#newcode596 src/ast/ast.cc:596: if (key->ToArrayIndex(&element_index)) { I guess you ...
3 years, 11 months ago (2017-01-22 21:39:16 UTC) #7
Franzi
On 2017/01/22 21:39:16, Toon Verwaest wrote: > lgtm with comment > > https://codereview.chromium.org/2651523002/diff/1/src/ast/ast.cc > File ...
3 years, 11 months ago (2017-01-22 22:52:10 UTC) #8
Toon Verwaest
'2' isn't actually dealt with by this loop, but by the loop below that walks ...
3 years, 11 months ago (2017-01-23 03:49:15 UTC) #9
Toon Verwaest
Mh, perhaps that AsArrayIndex is just outdated? In that case add a DCHECK(!...AsArrayIndex)); in case ...
3 years, 11 months ago (2017-01-23 03:57:01 UTC) #10
Franzi
On 2017/01/23 03:57:01, Toon Verwaest wrote: > Mh, perhaps that AsArrayIndex is just outdated? In ...
3 years, 11 months ago (2017-01-23 09:24:44 UTC) #13
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/2651523002/20001
3 years, 11 months ago (2017-01-23 12:06:56 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 12:08:38 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/0d1e0a15214505f017da068cdcd9ca38c9c...

Powered by Google App Engine
This is Rietveld 408576698