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

Unified Diff: src/ast.cc

Issue 766663003: harmony-classes: Implement 'super(...)' call syntactic restriction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Patch for landing Created 6 years, 1 month 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
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 874f984ff6bc61a4bcb470b097e67a44795171fd..35347ce9c59fb5f369b477d274032fadcf9dbf32 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -151,9 +151,16 @@ StrictMode FunctionLiteral::strict_mode() const {
}
-bool FunctionLiteral::uses_super() const {
+bool FunctionLiteral::uses_super_property() const {
DCHECK_NOT_NULL(scope());
- return scope()->uses_super() || scope()->inner_uses_super();
+ return scope()->uses_super_property() || scope()->inner_uses_super_property();
+}
+
+
+bool FunctionLiteral::uses_super_constructor_call() const {
+ DCHECK_NOT_NULL(scope());
+ return scope()->uses_super_constructor_call() ||
+ scope()->inner_uses_super_constructor_call();
}
« no previous file with comments | « src/ast.h ('k') | src/ast-this-access-visitor.h » ('j') | src/ast-this-access-visitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698