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

Issue 410873004: Fix checks to bit flags of PreParserExpression (Closed)

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

Description

Fix checks to bit flags of PreParserExpression This fixes checks on the "code_" member of PreParserExpression, in order to make methods IsThis(), IsThisProperty(), IsProperty(), IsCall() and IsValidReferenceExpression() work correctly. BUG=v8:3456 LOG= R=svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=22562

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M src/preparser.h View 1 chunk +10 lines, -7 lines 2 comments Download
A test/mjsunit/regress-3456.js View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
wingo
https://codereview.chromium.org/410873004/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/410873004/diff/1/src/preparser.h#newcode683 src/preparser.h:683: bool IsThis() const { return (code_ & kThisExpression) == ...
6 years, 5 months ago (2014-07-23 12:54:55 UTC) #1
Sven Panne
LGTM, wowhead.com has been resurrected by this patch, I'll land it for you. https://codereview.chromium.org/410873004/diff/1/src/preparser.h File ...
6 years, 5 months ago (2014-07-23 13:26:06 UTC) #2
Sven Panne
Committed patchset #1 manually as r22562 (presubmit successful).
6 years, 5 months ago (2014-07-23 13:29:31 UTC) #3
aperez
On 2014/07/23 13:26:06, Sven Panne wrote: > LGTM, http://wowhead.com has been resurrected by this patch, ...
6 years, 5 months ago (2014-07-23 13:36:50 UTC) #4
Sven Panne
6 years, 5 months ago (2014-07-23 13:50:07 UTC) #5
Message was sent while issue was closed.
On 2014/07/23 13:36:50, aperez wrote:
> Agreed, while making the fix I was thinking that it would be nice to use the
> BitField template from “src/utils.h”... anyway, the idea was to have this fix
> applied ASAP, so let's leave cleanups for another day.

Yes, using BitField would be much better, although I don't fully understand why
we don't simply use C++'s enums + bit fields: Even with BitField you have to
write error-prone boilerplate code, which would be automatically and safely be
generated by the C++ compiler instead of your brain. But that's a topic for a
separate discussion...

Powered by Google App Engine
This is Rietveld 408576698