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

Unified Diff: src/parsing/parser.h

Issue 1810943002: Add parsing for tuple types (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types
Patch Set: Created 4 years, 9 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/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index a3f51c5cd062cab4380d3c5b2584e01acd320503..e63924fade8d2cd9fe2b9926e5c55062f74c104a 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -354,7 +354,7 @@ class ParserTraits {
struct TypeSystem {
typedef v8::internal::typesystem::Type* Type;
- typedef ZoneList<v8::internal::typesystem::Type*>* TypeArguments;
+ typedef ZoneList<v8::internal::typesystem::Type*>* TypeList;
typedef v8::internal::typesystem::TypeParameter* TypeParameter;
typedef ZoneList<v8::internal::typesystem::TypeParameter*>*
TypeParameters;
@@ -499,9 +499,9 @@ class ParserTraits {
static ObjectLiteralProperty* EmptyObjectLiteralProperty() { return NULL; }
static FunctionLiteral* EmptyFunctionLiteral() { return NULL; }
- static typesystem::Type* EmptyType() { return NULL; }
- static ZoneList<typesystem::Type*>* NullTypeArguments() { return nullptr; }
- V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeArguments() const;
+ static typesystem::Type* EmptyType() { return nullptr; }
+ static ZoneList<typesystem::Type*>* NullTypeList() { return nullptr; }
+ V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeList() const;
static ZoneList<typesystem::TypeParameter*>* NullTypeParameters() {
return nullptr;
}
@@ -514,6 +514,7 @@ class ParserTraits {
const;
static ZoneList<const AstRawString*>* NullIdentifierList() { return nullptr; }
V8_INLINE ZoneList<const AstRawString*>* EmptyIdentifierList() const;
+ static typesystem::Type* HoleTypeElement() { return nullptr; }
// Used in error return values.
static ZoneList<Expression*>* NullExpressionList() {
@@ -1112,7 +1113,7 @@ Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type,
}
-ZoneList<typesystem::Type*>* ParserTraits::EmptyTypeArguments() const {
+ZoneList<typesystem::Type*>* ParserTraits::EmptyTypeList() const {
return new (parser_->zone()) ZoneList<typesystem::Type*>(1, parser_->zone());
}

Powered by Google App Engine
This is Rietveld 408576698