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

Issue 2427253003: Simplify and fix the rewriter (Closed)

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

Description

Simplify and fix the rewriter Now we - always set .result to undefined before a visited loop and switch since we can't know whether they will set a value, - only visit finally if it can break/continue; and only store/restore .result in that case BUG= Committed: https://crrev.com/caba112d0396168349971ca8c90c525490eb5c9f Cr-Commit-Position: refs/heads/master@{#40542}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix and add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -62 lines) Patch
M src/parsing/rewriter.cc View 1 3 chunks +54 lines, -62 lines 0 comments Download
M test/mjsunit/es6/completion.js View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
Toon Verwaest
ptal
4 years, 2 months ago (2016-10-19 10:27:45 UTC) #2
adamk
+neis
4 years, 2 months ago (2016-10-21 11:14:03 UTC) #4
neis
https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc#newcode287 src/parsing/rewriter.cc:287: for (int i = 0; i < clauses->length(); ++i) ...
4 years, 2 months ago (2016-10-21 12:15:25 UTC) #5
Toon Verwaest
https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc#newcode315 src/parsing/rewriter.cc:315: replacement_ = set_after ? node : AssignUndefinedBefore(node); On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 14:13:08 UTC) #6
Toon Verwaest
https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc#newcode287 src/parsing/rewriter.cc:287: for (int i = 0; i < clauses->length(); ++i) ...
4 years, 2 months ago (2016-10-21 14:15:01 UTC) #7
neis
https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc File src/parsing/rewriter.cc (right): https://codereview.chromium.org/2427253003/diff/1/src/parsing/rewriter.cc#newcode315 src/parsing/rewriter.cc:315: replacement_ = set_after ? node : AssignUndefinedBefore(node); On 2016/10/21 ...
4 years, 2 months ago (2016-10-21 16:06:13 UTC) #8
Toon Verwaest
Fixed the bugs and added tests. Thanks!
4 years, 2 months ago (2016-10-24 08:25:24 UTC) #9
neis
lgtm
4 years, 2 months ago (2016-10-24 09:01:14 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/2427253003/20001
4 years, 1 month ago (2016-10-24 15:41:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/27176)
4 years, 1 month ago (2016-10-24 15:49:12 UTC) #18
adamk
lgtm
4 years, 1 month ago (2016-10-24 17:21:52 UTC) #19
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/2427253003/20001
4 years, 1 month ago (2016-10-24 19:16:52 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-24 19:22:33 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:11:34 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/caba112d0396168349971ca8c90c525490eb5c9f
Cr-Commit-Position: refs/heads/master@{#40542}

Powered by Google App Engine
This is Rietveld 408576698