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

Unified Diff: runtime/vm/object.cc

Issue 23983026: Fill in type arguments when creating an object from the mirrors or embedding API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 af6378af08bf5f484f0a269dd9fce98d87155925..07470bb3e815ab25f44b29a876235132cefa946a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1512,6 +1512,15 @@ RawType* Class::SignatureType() const {
}
+RawType* Class::BasicType() const {
+ Type& type = Type::Handle(Type::New(*this,
+ Object::null_abstract_type_arguments(),
+ Scanner::kDummyTokenIndex));
+ return Type::RawCast(
+ ClassFinalizer::FinalizeType(*this, type, ClassFinalizer::kCanonicalize));
+}
+
+
template <class FakeObject>
RawClass* Class::New() {
ASSERT(Object::class_class() != Class::null());
« runtime/vm/object.h ('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