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

Issue 2301183003: Move sloppy block function hoisting logic from Parser to Scope. (Closed)

Created:
4 years, 3 months ago by marja
Modified:
4 years, 3 months ago
Reviewers:
nickie, Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Move sloppy block function hoisting logic from Parser to Scope. This moves scope-related logic (such as looking up variables) to Scope where it belongs, and enables PreParser to do more Scope-related operations in the future. BUG= Committed: https://crrev.com/8ee581af4b6de5ac4beda973461fef2b4e105339 Cr-Commit-Position: refs/heads/master@{#39233}

Patch Set 1 #

Total comments: 6

Patch Set 2 : code review (adamk@) #

Total comments: 5

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Patch Set 5 : code review (nikolaos@) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -95 lines) Patch
M src/ast/ast.h View 1 2 3 3 chunks +11 lines, -3 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
M src/ast/variables.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 8 chunks +14 lines, -86 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M test/mjsunit/es6/block-sloppy-function.js View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
marja
adamk, dehrenberg, ptal. (verwaest is ooo) This is a second try at moving sloppy block ...
4 years, 3 months ago (2016-09-02 10:54:53 UTC) #6
adamk
I'd like littledan to review this, he'll be back on Tuesday (we have Monday off ...
4 years, 3 months ago (2016-09-02 18:16:27 UTC) #9
marja
adamk@, thanks for comments! nikolaos@, could you have a look too? (I'll wait for littledan@'s ...
4 years, 3 months ago (2016-09-05 09:23:43 UTC) #11
nickie
LGTM, with a couple of comments. https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc#newcode4684 src/parsing/parser.cc:4684: scope->HoistSloppyBlockFunctions(factory(), ok); If ...
4 years, 3 months ago (2016-09-05 11:53:21 UTC) #12
marja
Thanks for review! https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc#newcode4684 src/parsing/parser.cc:4684: scope->HoistSloppyBlockFunctions(factory(), ok); On 2016/09/05 11:53:21, nickie ...
4 years, 3 months ago (2016-09-06 12:16:10 UTC) #13
Dan Ehrenberg
lgtm I like the new form of the refactoring; seems like more appropriate layering, and ...
4 years, 3 months ago (2016-09-06 22:34:44 UTC) #14
marja
thanks for review! https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2301183003/diff/20001/src/parsing/parser.cc#newcode4686 src/parsing/parser.cc:4686: if (!*ok) return; On 2016/09/05 11:53:21, ...
4 years, 3 months ago (2016-09-07 08:21:22 UTC) #15
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/2301183003/80001
4 years, 3 months ago (2016-09-07 08:21:39 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-07 08:47:55 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 08:48:40 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8ee581af4b6de5ac4beda973461fef2b4e105339
Cr-Commit-Position: refs/heads/master@{#39233}

Powered by Google App Engine
This is Rietveld 408576698