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

Unified Diff: src/parser.h

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 3b3144e0619f37e2d3d1e80703bcdbbcb46fd664..17fe88271507bf7d618c5009eb65f6cb038b19c3 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -216,6 +216,7 @@ class FunctionEntry BASE_EMBEDDED {
kPropertyCountIndex,
kLanguageModeIndex,
kUsesSuperPropertyIndex,
+ kUsesNewTargetIndex,
kSize
};
@@ -233,6 +234,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(); }
@@ -721,6 +723,8 @@ class ParserTraits {
Expression* ThisExpression(Scope* scope, AstNodeFactory* factory,
int pos = RelocInfo::kNoPosition);
+ Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory,
+ int start_position, int end_position);
Expression* SuperReference(Scope* scope, AstNodeFactory* factory,
int pos = RelocInfo::kNoPosition);
Expression* DefaultConstructor(bool call_super, Scope* scope, int pos,
« no previous file with comments | « src/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698