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

Unified Diff: runtime/vm/ast.h

Issue 154393003: Implement eager instantiation and canonicalization of type arguments at run (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 32446)
+++ runtime/vm/ast.h (working copy)
@@ -299,8 +299,8 @@
ASSERT(!type_.IsNull());
ASSERT(type_.IsFinalized());
// Type may be uninstantiated when creating a generic list literal.
- ASSERT((type_.arguments() == AbstractTypeArguments::null()) ||
- ((AbstractTypeArguments::Handle(type_.arguments()).Length() == 1)));
+ ASSERT((type_.arguments() == TypeArguments::null()) ||
+ ((TypeArguments::Handle(type_.arguments()).Length() == 1)));
}
DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayNode);
@@ -1551,7 +1551,7 @@
class ConstructorCallNode : public AstNode {
public:
ConstructorCallNode(intptr_t token_pos,
- const AbstractTypeArguments& type_arguments,
+ const TypeArguments& type_arguments,
const Function& constructor,
ArgumentListNode* arguments)
: AstNode(token_pos),
@@ -1563,7 +1563,7 @@
ASSERT(arguments_ != NULL);
}
- const AbstractTypeArguments& type_arguments() const {
+ const TypeArguments& type_arguments() const {
return type_arguments_;
}
const Function& constructor() const { return constructor_; }
@@ -1576,7 +1576,7 @@
DECLARE_COMMON_NODE_FUNCTIONS(ConstructorCallNode);
private:
- const AbstractTypeArguments& type_arguments_;
+ const TypeArguments& type_arguments_;
const Function& constructor_;
ArgumentListNode* arguments_;

Powered by Google App Engine
This is Rietveld 408576698