| 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)
|
| }
|
|
|
|
|
|
|