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

Issue 1412313009: [cleanup] Make control flow in ParsePrimaryExpression more consistent (Closed)

Created:
5 years, 1 month ago by adamk
Modified:
5 years, 1 month ago
Reviewers:
Dan Ehrenberg
CC:
caitp (gmail), 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

[cleanup] Make control flow in ParsePrimaryExpression more consistent The previous code had a mix of breaks, early returns, and switch/case/if with fallthrough. Now the pattern is to either return for known errors or break to the bottom of the switch for unhandled tokens. Also cleaned up random other stuff in the function: removed unnecessary local vars, shortened position-fetching calls. Committed: https://crrev.com/1447f7434410d9f2c21c1e3880ea0607aaf67a63 Cr-Commit-Position: refs/heads/master@{#31843}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -66 lines) Patch
M src/preparser.h View 8 chunks +43 lines, -66 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
adamk
This takes care of a TODO I handed caitp in a review awhile back :)
5 years, 1 month ago (2015-11-04 23:27:20 UTC) #2
Dan Ehrenberg
lgtm
5 years, 1 month ago (2015-11-05 21:05:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412313009/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412313009/1
5 years, 1 month ago (2015-11-05 21:11:12 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-11-05 21:13:42 UTC) #6
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 21:14:15 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1447f7434410d9f2c21c1e3880ea0607aaf67a63
Cr-Commit-Position: refs/heads/master@{#31843}

Powered by Google App Engine
This is Rietveld 408576698