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

Issue 2167713004: Always finalize blocks after parsing, also for do-expressions (Closed)

Created:
4 years, 5 months ago by Toon Verwaest
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Always finalize blocks after parsing, also for do-expressions Rather than finalizing after rewriting do-expressions, we rewrite in the outer scope if the block scope was finalized. Rewriting do expressions cannot introduce any new nodes that requires the block to stay around, so finalizing before and after is equivalent. (Only a temporary is introduced which always ends up in a ClosureScope) BUG=v8:5209 R=rossberg@chromium.org, caitpotter88@gmail.com, adamk@chromium.org Committed: https://crrev.com/f02018cee05f7e7c48aad7c3a5f4985a7c130d03 Cr-Commit-Position: refs/heads/master@{#38193}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Pass in the closure-scope directly to the rewriter #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -49 lines) Patch
M src/parsing/parser.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 6 chunks +9 lines, -17 lines 0 comments Download
M src/parsing/rewriter.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M src/parsing/rewriter.cc View 1 6 chunks +32 lines, -28 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Toon Verwaest
ptal
4 years, 5 months ago (2016-07-21 12:30:52 UTC) #1
adamk
https://codereview.chromium.org/2167713004/diff/1/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2167713004/diff/1/src/parsing/rewriter.cc#newcode368 src/parsing/rewriter.cc:368: Scope* scope = block->scope() == nullptr ? outer_scope : ...
4 years, 5 months ago (2016-07-21 17:15:41 UTC) #6
Toon Verwaest
You're right, we just need the closure-scope. To make it obvious I just request the ...
4 years, 5 months ago (2016-07-22 09:35:07 UTC) #7
adamk
lgtm
4 years, 5 months ago (2016-07-22 23:00:17 UTC) #8
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/2167713004/20001
4 years, 4 months ago (2016-08-01 07:51:07 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/21816) v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-01 07:53:39 UTC) #12
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/2167713004/40001
4 years, 4 months ago (2016-08-01 08:03:57 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-01 08:26:04 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 08:30:30 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f02018cee05f7e7c48aad7c3a5f4985a7c130d03
Cr-Commit-Position: refs/heads/master@{#38193}

Powered by Google App Engine
This is Rietveld 408576698