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

Unified Diff: src/parsing/preparser.h

Issue 2162763003: [parser] Add default constructor for PreParserExpression (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 9704b929dcbe201b33dbfc7aec30632105800fa4..443b3385f7bf0b904fa0b8348694e5914403b0ae 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -117,8 +117,10 @@ class PreParserIdentifier {
class PreParserExpression {
public:
+ PreParserExpression() : code_(TypeField::encode(kExpression)) {}
+
static PreParserExpression Default() {
- return PreParserExpression(TypeField::encode(kExpression));
+ return PreParserExpression();
}
static PreParserExpression Spread(PreParserExpression expression) {
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698