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

Issue 2386623002: Mark param as used when we force context allocation due to implement access through arguments (Closed)

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

Description

Mark param as used when we force context allocation due to implement access through arguments Currently the parameter is first parsed as a reference, and then translated into a parameter. The reference stays around though, and gets resolved to the parameter. That automatically creates a use. Now that I drop all unresolved references when we abort preparsing, that also drops the unresolved reference. Instead, mark the variable as used when its marked as forced context allocation. That's what happens in almost all other cases. This raises the question: does it really make sense to parse parameters this ways? It seems pretty generic, but neither fast nor memory-efficient ... Did I misunderstand something? Just land if you think the CL looks good as is. BUG=chromium:651613 Committed: https://crrev.com/9feab2d208f0cd16cee4a11e0ba3bebb8cf71179 Cr-Commit-Position: refs/heads/master@{#39935}

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -7 lines) Patch
M src/ast/scopes.cc View 1 chunk +1 line, -0 lines 0 comments Download
A + test/mjsunit/regress/regress-abort-context-allocate-params.js View 1 2 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Toon Verwaest
ptal
4 years, 2 months ago (2016-09-30 13:36:02 UTC) #2
adamk
lgtm I'm not sure what's so wrong about this way of handling parameters, so this ...
4 years, 2 months ago (2016-10-03 16:45:15 UTC) #4
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/2386623002/40001
4 years, 2 months ago (2016-10-03 16:54:39 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-03 17:21:06 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 17:21:33 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9feab2d208f0cd16cee4a11e0ba3bebb8cf71179
Cr-Commit-Position: refs/heads/master@{#39935}

Powered by Google App Engine
This is Rietveld 408576698