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

Unified Diff: src/parsing/preparser.h

Issue 1692713005: ES6: Desugaring of instanceof to support @@hasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@blah
Patch Set: REBASE plus comment response. Created 4 years, 10 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') | src/runtime/runtime.h » ('j') | 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 cfbfe0ecc8f322bb23fc7e75d259b3b355232aec..253251c0734620ab3279cae4897e77cc0afcdfb7 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -938,6 +938,9 @@ class PreParserTraits {
inline PreParserExpression RewriteYieldStar(
PreParserExpression generator, PreParserExpression expr, int pos);
+ inline PreParserExpression RewriteInstanceof(PreParserExpression lhs,
+ PreParserExpression rhs,
+ int pos);
private:
PreParser* pre_parser_;
@@ -1141,6 +1144,11 @@ PreParserExpression PreParserTraits::RewriteYieldStar(
generator, expression, Yield::kDelegating, pos);
}
+PreParserExpression PreParserTraits::RewriteInstanceof(PreParserExpression lhs,
+ PreParserExpression rhs,
+ int pos) {
+ return PreParserExpression::Default();
+}
PreParserStatementList PreParser::ParseEagerFunctionBody(
PreParserIdentifier function_name, int pos,
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698