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

Issue 2217973003: Clean up and simplify Parser::Declare (Closed)

Created:
4 years, 4 months ago by adamk
Modified:
4 years, 4 months ago
Reviewers:
neis
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

Clean up and simplify Parser::Declare This removes the "resolve" parameter from Declare, since there's no case where Scope analysis wouldn't make the same resolution decision the parser can make here. Other cleanup includes: - Replace some if statements with DCHECKS where they could never be hit - After the above, reordered some conditions for clarity - Remove or edit down old comments Should be no change in behavior. R=neis@chromium.org Committed: https://crrev.com/9b6c57045d36d2bf53b529dc83efc1b44491ea6f Cr-Commit-Position: refs/heads/master@{#38454}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Patch Set 3 : Fix bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -92 lines) Patch
M src/parsing/parser.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 11 chunks +40 lines, -87 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
adamk
4 years, 4 months ago (2016-08-05 21:41:19 UTC) #1
adamk
For the record, it looks like the "resolve" argument has been mostly a no-op for ...
4 years, 4 months ago (2016-08-05 22:50:48 UTC) #8
neis
Great, lgtm. One comment below. https://codereview.chromium.org/2217973003/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2217973003/diff/1/src/parsing/parser.cc#newcode2029 src/parsing/parser.cc:2029: if (is_sloppy(scope->language_mode()) && is_function_declaration ...
4 years, 4 months ago (2016-08-08 09:42:34 UTC) #10
adamk
https://codereview.chromium.org/2217973003/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2217973003/diff/1/src/parsing/parser.cc#newcode2029 src/parsing/parser.cc:2029: if (is_sloppy(scope->language_mode()) && is_function_declaration && On 2016/08/08 09:42:34, neis ...
4 years, 4 months ago (2016-08-08 17:27:26 UTC) #11
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/2217973003/1
4 years, 4 months ago (2016-08-08 17:27:38 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/6561) v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-08 17:29:08 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/2217973003/40001
4 years, 4 months ago (2016-08-08 17:36:28 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/1969) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-08 17:49:38 UTC) #20
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/2217973003/60001
4 years, 4 months ago (2016-08-08 17:56:09 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-08 18:17:27 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 18:20:00 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9b6c57045d36d2bf53b529dc83efc1b44491ea6f
Cr-Commit-Position: refs/heads/master@{#38454}

Powered by Google App Engine
This is Rietveld 408576698