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

Issue 422363002: Clean up manual bit field usage in PreParserExpression (Closed)

Created:
6 years, 4 months ago by aperez
Modified:
5 years, 9 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Clean up manual bit field usage in PreParserExpression Instead of using an integer value and manual bit-fiddling, use C++'s support for specifying bit sizes for integral types. This way the bits used to describe a PreParserExpression are handled by the compiler. BUG= LOG=

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 1

Patch Set 3 : Alternative version using BitField #

Total comments: 2

Patch Set 4 : Added PreParserIdentifier::IsValidArrowParam(), used from PreParserExpression::IsValidArrowParams() #

Patch Set 5 : Rebased against latest changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -88 lines) Patch
M src/preparser.h View 1 2 3 4 5 chunks +98 lines, -88 lines 1 comment Download

Messages

Total messages: 13 (1 generated)
aperez
This is one possible approach to avoid the manual, error-prone bit fiddling, as discussed here: ...
6 years, 4 months ago (2014-08-02 09:44:21 UTC) #1
Sven Panne
NOT LGTM. https://codereview.chromium.org/422363002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/422363002/diff/20001/src/preparser.h#newcode783 src/preparser.h:783: Type type_ : 2; This actually blows ...
6 years, 4 months ago (2014-08-04 06:55:57 UTC) #2
aperez
On 2014/08/04 06:55:57, Sven Panne wrote: > NOT LGTM. > > https://codereview.chromium.org/422363002/diff/20001/src/preparser.h > File src/preparser.h ...
6 years, 3 months ago (2014-09-03 15:11:55 UTC) #3
aperez
On 2014/08/04 06:55:57, Sven Panne wrote: > NOT LGTM. > > https://codereview.chromium.org/422363002/diff/20001/src/preparser.h > File src/preparser.h ...
6 years, 3 months ago (2014-09-05 19:43:53 UTC) #4
Sven Panne
https://codereview.chromium.org/422363002/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/422363002/diff/40001/src/preparser.h#newcode823 src/preparser.h:823: if (IsIdentifier()) { Use a separate predicate and simplify ...
6 years, 3 months ago (2014-09-08 10:35:53 UTC) #5
aperez
https://codereview.chromium.org/422363002/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/422363002/diff/40001/src/preparser.h#newcode823 src/preparser.h:823: if (IsIdentifier()) { On 2014/09/08 10:35:52, Sven Panne wrote: ...
6 years, 3 months ago (2014-09-10 14:24:04 UTC) #6
aperez
On 2014/09/08 10:35:53, Sven Panne wrote: > https://codereview.chromium.org/422363002/diff/40001/src/preparser.h > File src/preparser.h (right): > > https://codereview.chromium.org/422363002/diff/40001/src/preparser.h#newcode823 ...
6 years, 3 months ago (2014-09-10 15:57:18 UTC) #7
Sven Panne
lgtm
6 years, 2 months ago (2014-10-06 12:22:09 UTC) #8
aperez
On 2014/10/06 12:22:09, Sven Panne wrote: > lgtm Can someone land this for me? I ...
6 years, 2 months ago (2014-10-06 14:58:56 UTC) #9
wingo
On 2014/10/06 14:58:56, aperez wrote: > On 2014/10/06 12:22:09, Sven Panne wrote: > > lgtm ...
6 years, 2 months ago (2014-10-06 15:11:44 UTC) #10
wingo (chromium)
Committed patchset #5 manually as 24429 (presubmit successful).
6 years, 2 months ago (2014-10-07 09:23:17 UTC) #12
marja
5 years, 9 months ago (2015-03-10 08:45:41 UTC) #13
Message was sent while issue was closed.
Post-commit comments...

https://codereview.chromium.org/422363002/diff/80001/src/preparser.h
File src/preparser.h (right):

https://codereview.chromium.org/422363002/diff/80001/src/preparser.h#newcode826
src/preparser.h:826: enum Type {
Type and ExpressionType both??? What's up with that?

Powered by Google App Engine
This is Rietveld 408576698