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

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: 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('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 dae65102275a5f4dbee40345ca6f24609458f655..ce71a83ef3170263d46a1c1229db0d8a5c96ca08 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14360,6 +14360,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()
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698