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

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: RareType 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
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index af6378af08bf5f484f0a269dd9fce98d87155925..476f1dc113228de4e9f0f5e6d09a018efb390bb9 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1512,6 +1512,15 @@ RawType* Class::SignatureType() const {
}
+RawType* Class::RareType() const {
+ Type& type = Type::Handle(Type::New(*this,
regis 2013/09/12 00:30:06 const Type& type ...
+ 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());
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698