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

Issue 2574753002: Disable lazy parsing inside eval (see bug). (Closed)

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

Description

Disable lazy parsing inside eval (see bug). If the eval contains a let, we need to know whether an inner function refers to the variable to be able to decide its context allocation status. The added test needs https://codereview.chromium.org/2435023002/ too in order to pass. BUG=v8:5736 Review-Url: https://codereview.chromium.org/2574753002 Cr-Commit-Position: refs/heads/master@{#41723} Committed: https://chromium.googlesource.com/v8/v8/+/ed080e69665c96f9e5e61cf1d0e1ce377fc5aca6

Patch Set 1 : . #

Total comments: 1

Patch Set 2 : a different approach #

Patch Set 3 : removing a bug test which no longer fails #

Patch Set 4 : moar tests #

Total comments: 14

Patch Set 5 : code review (adamk@) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -43 lines) Patch
M src/ast/scopes.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
D test/mjsunit/bugs/bug-2728.js View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
A test/mjsunit/regress/regress-5736.js View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
marja
ptal
4 years ago (2016-12-13 13:40:56 UTC) #3
adamk
Is this specific to block-scoped variables? Can you add a test case for a var ...
4 years ago (2016-12-14 08:00:14 UTC) #4
Toon Verwaest
Isn't this over-eagerly context allocating in eval scopes? If there are no nested scopes, we ...
4 years ago (2016-12-14 12:03:17 UTC) #5
Toon Verwaest
Especially given that we'll probably always do scope resolution the preparser to avoid reparsing.
4 years ago (2016-12-14 12:04:07 UTC) #6
adamk
On 2016/12/14 12:03:17, Toon Verwaest wrote: > Isn't this over-eagerly context allocating in eval scopes? ...
4 years ago (2016-12-14 12:26:57 UTC) #7
marja
updated with the new solution, ptal
4 years ago (2016-12-15 13:02:02 UTC) #13
adamk
Change to scopes.cc lgtm, just a few comments on the tests. https://codereview.chromium.org/2574753002/diff/80001/test/mjsunit/bugs/bug-2728.js File test/mjsunit/bugs/bug-2728.js (left): ...
4 years ago (2016-12-15 13:11:49 UTC) #14
marja
thanks for review https://codereview.chromium.org/2574753002/diff/80001/test/mjsunit/bugs/bug-2728.js File test/mjsunit/bugs/bug-2728.js (left): https://codereview.chromium.org/2574753002/diff/80001/test/mjsunit/bugs/bug-2728.js#oldcode1 test/mjsunit/bugs/bug-2728.js:1: // Copyright 2016 the V8 project ...
4 years ago (2016-12-15 13:48:07 UTC) #15
adamk
lgtm, thanks!
4 years ago (2016-12-15 14:00:39 UTC) #16
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/2574753002/100001
4 years ago (2016-12-15 14:02:00 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-15 14:27:03 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/ed080e69665c96f9e5e61cf1d0e1ce377fc...

Powered by Google App Engine
This is Rietveld 408576698