Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 9253ad5e518f93b9cfc08393a475912eb6377e85..d3fc145ccbb0c6c5041a46295aeddc38c518bb9f 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -279,6 +279,10 @@ class PreParserExpression { |
int position() const { return RelocInfo::kNoPosition; } |
void set_function_token_position(int position) {} |
+ // Parenthesized expressions in the form `( Expression )`. |
+ void set_is_parenthesized() { code_ |= ParenthesizedField::encode(true); } |
+ bool is_parenthesized() const { return ParenthesizedField::decode(code_); } |
+ |
private: |
enum Type { |
kExpression, |
@@ -314,6 +318,7 @@ class PreParserExpression { |
typedef BitField<PreParserIdentifier::Type, TypeField::kNext, 10> |
IdentifierTypeField; |
typedef BitField<bool, TypeField::kNext, 1> HasCoverInitializedNameField; |
+ typedef BitField<bool, 31, 1> ParenthesizedField; |
uint32_t code_; |
}; |