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

Unified Diff: runtime/vm/object.cc

Issue 2644163002: More ifdefs to make everything build at -O0 and without --gc-sections. (Closed)
Patch Set: Created 3 years, 11 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/bootstrap_natives.cc ('k') | runtime/vm/precompiler.cc » ('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 7f85580c24ae48780918ff7f8048dbcd8bc39296..69810fdf5e52e4f1c0a9d0174e5082ef65af3f60 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -9794,6 +9794,10 @@ RawField* Library::GetMetadataField(const String& metaname) const {
RawObject* Library::GetMetadata(const Object& obj) const {
+#if defined(DART_PRECOMPILED_RUNTIME)
+ COMPILE_ASSERT(!FLAG_enable_mirrors);
+ return Object::empty_array().raw();
+#else
if (!obj.IsClass() && !obj.IsField() && !obj.IsFunction() &&
!obj.IsLibrary() && !obj.IsTypeParameter()) {
return Object::null();
@@ -9821,6 +9825,7 @@ RawObject* Library::GetMetadata(const Object& obj) const {
}
}
return metadata.raw();
+#endif // defined(DART_PRECOMPILED_RUNTIME)
}
« no previous file with comments | « runtime/vm/bootstrap_natives.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698