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

Unified Diff: src/parser.h

Issue 949763003: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index bc0b7ab51b0546257d807260331c540098d6d133..4e685665376a0571c56cf05817c8a0d77c2a8439 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -33,6 +33,7 @@ class FunctionEntry BASE_EMBEDDED {
kPropertyCountIndex,
kLanguageModeIndex,
kUsesSuperPropertyIndex,
+ kUsesNewTargetIndex,
kSize
};
@@ -50,6 +51,7 @@ class FunctionEntry BASE_EMBEDDED {
return static_cast<LanguageMode>(backing_[kLanguageModeIndex]);
}
bool uses_super_property() { return backing_[kUsesSuperPropertyIndex]; }
+ bool uses_new_target() { return backing_[kUsesNewTargetIndex]; }
bool is_valid() { return !backing_.is_empty(); }
@@ -535,6 +537,8 @@ class ParserTraits {
Expression* ThisExpression(Scope* scope, AstNodeFactory* factory,
int pos = RelocInfo::kNoPosition);
+ Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory,
+ int pos = RelocInfo::kNoPosition);
Expression* SuperReference(Scope* scope, AstNodeFactory* factory,
int pos = RelocInfo::kNoPosition);
Expression* DefaultConstructor(bool call_super, Scope* scope, int pos,

Powered by Google App Engine
This is Rietveld 408576698