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

Unified Diff: src/parser.h

Issue 1173003002: Rebase for "parse destructuring assignment" patch (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/messages.h ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index d092403e7af1fb01e3298d6b53bcaa1c9b4090d9..08dcc5cabb9b70558a6988ffb57f8416eb75cdaa 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -841,6 +841,8 @@ class ParserTraits {
ZoneList<v8::internal::Expression*>* args,
int pos);
+ inline Expression* RewriteDestructuringAssignment(Expression* expr, bool* ok);
+
private:
Parser* parser_;
};
@@ -1068,6 +1070,8 @@ class Parser : public ParserBase<ParserTraits> {
ForStatement* loop, Statement* init, Expression* cond, Statement* next,
Statement* body, bool* ok);
+ Expression* DesugarDestructuringAssignment(Expression* expr, bool* ok);
+
FunctionLiteral* ParseFunctionLiteral(
const AstRawString* name, Scanner::Location function_name_location,
bool name_is_strict_reserved, FunctionKind kind,
@@ -1291,6 +1295,12 @@ void ParserTraits::DeclareFormalParameter(Scope* scope,
parser_->scanner()->location());
}
}
+
+
+inline Expression* ParserTraits::RewriteDestructuringAssignment(
+ Expression* expr, bool* ok) {
+ return parser_->DesugarDestructuringAssignment(expr, ok);
+}
} } // namespace v8::internal
#endif // V8_PARSER_H_
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698