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); |