Chromium Code Reviews| Index: runtime/vm/object.cc |
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
| index 11de55fb370d6ae092d04b3d981a094e0e1b0343..59ef3d7b3d2b8afa10bf605fb143c18695f292c1 100644 |
| --- a/runtime/vm/object.cc |
| +++ b/runtime/vm/object.cc |
| @@ -10362,6 +10362,11 @@ bool LibraryPrefix::LoadLibrary() const { |
| } |
| ASSERT(is_deferred_load()); |
| ASSERT(num_imports() == 1); |
| + if (Dart::IsRunningPrecompiledCode()) { |
|
Florian Schneider
2016/03/01 22:53:44
Should this be just
#if defined(DART_PRECOMPILED
rmacnak
2016/03/01 23:03:29
Issue #25894
|
| + // The library list was tree-shaken away. |
| + this->set_is_loaded(); |
| + return true; |
| + } |
| // This is a prefix for a deferred library. If the library is not loaded |
| // yet and isn't being loaded, call the library tag handler to schedule |
| // loading. Once all outstanding load requests have completed, the embedder |