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

Unified Diff: runtime/vm/object.cc

Issue 20216002: Make ClassMirror.typeVariables lazy and convert dependencies to native code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get rid of TypeVariableMirror dependency Created 7 years, 5 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 b0bfbe8e1e4d469266a949650593e0d1fafc611a..aac3c37ec36f92fc7ddc501723bc757befe8fa2b 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14346,6 +14346,12 @@ RawLibrary* MirrorReference::GetLibraryReferent() const {
}
+RawTypeParameter* MirrorReference::GetTypeParameterReferent() const {
+ ASSERT(Object::Handle(referent()).IsTypeParameter());
+ return TypeParameter::Cast(Object::Handle(referent())).raw();
+}
+
+
RawMirrorReference* MirrorReference::New(const Object& referent,
Heap::Space space) {
ASSERT(Isolate::Current()->object_store()->mirror_reference_class()
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698