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

Unified Diff: src/ast.cc

Issue 1226123010: Represent implicit 'this' binding by 'super' in AST. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix strong mode. 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/ast.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 93cb6c09b99358f6a118f58e83442ef01f58e832..de229cb014ea36ad65f0f8d927646659a183d30e 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -59,6 +59,11 @@ bool Expression::IsUndefinedLiteral(Isolate* isolate) const {
}
+bool Expression::IsVariableProxyOrProperty() const {
rossberg 2015/07/16 11:50:48 I have a slight preference for IsValidReferenceEx
Michael Starzinger 2015/07/16 12:46:19 Done. Your slight preference is my command.
+ return IsVariableProxy() || IsProperty();
+}
+
+
VariableProxy::VariableProxy(Zone* zone, Variable* var, int start_position,
int end_position)
: Expression(zone, start_position),
« no previous file with comments | « src/ast.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698