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

Unified Diff: src/parsing/parser.h

Issue 1567603005: Set up rewriting triggers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge RewriteExpression and ValidateExpression Created 4 years, 11 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 | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser-base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index d1063b0215fdcdb54159dae13c7fd0f5f43a75c7..c6e906d9ad828f0bffe039bd6249caebd470a01f 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -652,9 +652,11 @@ class ParserTraits {
const AstRawString* name);
// Rewrite expressions
rossberg 2016/01/12 13:47:52 Nit: can you clarify in the comment that this is u
nickie 2016/01/12 14:12:32 We agreed to rename this as RewriteNonPattern whic
- V8_INLINE Expression* RewriteExpression(Expression* expr);
+ V8_INLINE Expression* RewriteExpression(
+ Expression* expr, const ExpressionClassifier* classifier, bool* ok);
V8_INLINE ObjectLiteralProperty* RewriteObjectLiteralProperty(
- ObjectLiteralProperty* property);
+ ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
+ bool* ok);
private:
Parser* parser_;
@@ -1008,9 +1010,11 @@ class Parser : public ParserBase<ParserTraits> {
V8_INLINE void RewriteDestructuringAssignments();
- V8_INLINE Expression* RewriteExpression(Expression* expr);
+ V8_INLINE Expression* RewriteExpression(
+ Expression* expr, const ExpressionClassifier* classifier, bool* ok);
V8_INLINE ObjectLiteralProperty* RewriteObjectLiteralProperty(
- ObjectLiteralProperty* property);
+ ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
+ bool* ok);
friend class InitializerRewriter;
void RewriteParameterInitializer(Expression* expr, Scope* scope);
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698