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

Issue 2431273002: Only rewrite all statements in a block if we're in a breakable scope (Closed)

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

Description

Only rewrite all statements in a block if we're in a breakable scope BUG= Committed: https://crrev.com/cc782c0a1616e1d996deb5183cd9dc574bc06bfc Cr-Commit-Position: refs/heads/master@{#40492}

Patch Set 1 #

Patch Set 2 : Still walk backwards until we see the first statement that actually produces a value #

Patch Set 3 : Update test again #

Total comments: 1

Patch Set 4 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M src/parsing/rewriter.cc View 1 2 3 7 chunks +31 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Toon Verwaest
ptal
4 years, 2 months ago (2016-10-19 07:25:57 UTC) #2
adamk
I'm missing how this handles finding the last non-empty statement. e.g., eval("42; var x") needs ...
4 years, 2 months ago (2016-10-19 14:55:25 UTC) #3
Toon Verwaest
Good point, I'll look into it tomorrow. Odd we don't have a single test in ...
4 years, 2 months ago (2016-10-19 15:49:48 UTC) #8
Toon Verwaest
Now I walk backwards until the value is_set_; except if breakable_.
4 years, 2 months ago (2016-10-20 08:07:12 UTC) #11
tammie.h.oneal
Very good point!We have missed tests for unlabeled blocks at http://buyessayfast.net/ and had a lot ...
4 years, 2 months ago (2016-10-20 08:55:02 UTC) #16
adamk
lgtm once this has a comment https://codereview.chromium.org/2431273002/diff/40001/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2431273002/diff/40001/src/parsing/rewriter.cc#newcode127 src/parsing/rewriter.cc:127: for (int i ...
4 years, 2 months ago (2016-10-20 15:39:06 UTC) #17
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/2431273002/60001
4 years, 2 months ago (2016-10-21 08:04:51 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-21 08:50:40 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:09:15 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cc782c0a1616e1d996deb5183cd9dc574bc06bfc
Cr-Commit-Position: refs/heads/master@{#40492}

Powered by Google App Engine
This is Rietveld 408576698