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

Unified Diff: runtime/vm/object.cc

Issue 19500016: Fix function premable for native entrypoints. (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') | no next file » | 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 64023dceafea56969aaee7bd4c30da8b8bab6aa6..fa9c9d382e4eed4d0a0551a0ed898d76d333e55a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14227,12 +14227,24 @@ void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const {
}
+RawClass* MirrorReference::GetClassReferent() const {
+ ASSERT(Object::Handle(referent()).IsClass());
+ return Class::Cast(Object::Handle(referent())).raw();
+}
+
+
RawFunction* MirrorReference::GetFunctionReferent() const {
ASSERT(Object::Handle(referent()).IsFunction());
return Function::Cast(Object::Handle(referent())).raw();
}
+RawLibrary* MirrorReference::GetLibraryReferent() const {
+ ASSERT(Object::Handle(referent()).IsLibrary());
+ return Library::Cast(Object::Handle(referent())).raw();
+}
+
+
RawMirrorReference* MirrorReference::New(Heap::Space space) {
ASSERT(Isolate::Current()->object_store()->mirror_reference_class()
!= Class::null());
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698