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

Unified Diff: src/ast.h

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
« no previous file with comments | « BUILD.gn ('k') | src/ast.cc » ('j') | src/ast-this-access-visitor.h » ('J')
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 c9592e66d7d9d3b14a6310f7b1355e2ab02a12d5..d57aaa85b9147fb69b56cfd3de4944009b88597f 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2513,11 +2513,12 @@ class FunctionLiteral FINAL : public Expression {
bool is_expression() const { return IsExpression::decode(bitfield_); }
bool is_anonymous() const { return IsAnonymous::decode(bitfield_); }
StrictMode strict_mode() const;
- bool uses_super() const;
+ bool uses_super_property() const;
+ bool uses_super_constructor_call() const;
static bool NeedsHomeObject(Expression* literal) {
return literal != NULL && literal->IsFunctionLiteral() &&
- literal->AsFunctionLiteral()->uses_super();
+ literal->AsFunctionLiteral()->uses_super_property();
}
int materialized_literal_count() { return materialized_literal_count_; }
« no previous file with comments | « BUILD.gn ('k') | src/ast.cc » ('j') | src/ast-this-access-visitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698