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

Unified Diff: runtime/vm/object.cc

Issue 27610002: Instantations of mixins and interfaces. Equality of type parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index ae6660294ea24c8b538a11b175df6c63f0885f37..07356ca448b81d73bf485b9ddb09a43881500493 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1635,6 +1635,18 @@ RawAbstractType* Class::RareType() const {
}
+RawAbstractType* Class::DeclarationType() const {
+ const TypeArguments& args = TypeArguments::Handle(type_parameters());
+ const Type& type = Type::Handle(Type::New(
+ *this,
+ args,
+ Scanner::kDummyTokenIndex));
+ return ClassFinalizer::FinalizeType(*this,
+ type,
+ ClassFinalizer::kCanonicalize);
+}
+
+
template <class FakeObject>
RawClass* Class::New() {
ASSERT(Object::class_class() != Class::null());
« runtime/lib/mirrors.cc ('K') | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698