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

Unified Diff: src/ast.h

Issue 1226123010: Represent implicit 'this' binding by 'super' in AST. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 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/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index b1a634edb4c7f02f4dc96658e3e9dba6c5cb9908..ee019e8f0fa60ee540fd9361029208bea07c27a8 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -339,6 +339,7 @@ class Expression : public AstNode {
kTest
};
+ // True iff the expression is a valid reference expression.
virtual bool IsValidReferenceExpression() const { return false; }
// Helpers for ToBoolean conversion.
@@ -362,6 +363,9 @@ class Expression : public AstNode {
// True if we can prove that the expression is the undefined literal.
bool IsUndefinedLiteral(Isolate* isolate) const;
+ // True iff the expression is a valid target for an assignment.
+ bool IsValidReferenceExpressionOrThis() const;
+
// Expression type bounds
Bounds bounds() const { return bounds_; }
void set_bounds(Bounds bounds) { bounds_ = bounds; }
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698