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

Unified Diff: runtime/vm/bootstrap.cc

Issue 1712843002: Remove mirrors in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
index 1868f07a3034bf1fd5d2ff207ba7b0a86e86e56a..8cb5d77959a201811b6f6610f17ec7738f822993 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -295,6 +295,11 @@ RawError* Bootstrap::LoadandCompileScripts() {
for (intptr_t i = 0;
bootstrap_libraries[i].index_ != ObjectStore::kNone;
++i) {
+#ifdef PRODUCT
+ if (bootstrap_libraries[i].index_ == ObjectStore::kMirrors) {
+ continue;
+ }
+#endif // !PRODUCT
uri = Symbols::New(bootstrap_libraries[i].uri_);
lib = Library::LookupLibrary(uri);
if (lib.IsNull()) {
@@ -310,6 +315,11 @@ RawError* Bootstrap::LoadandCompileScripts() {
for (intptr_t i = 0;
bootstrap_libraries[i].index_ != ObjectStore::kNone;
++i) {
+#ifdef PRODUCT
+ if (bootstrap_libraries[i].index_ == ObjectStore::kMirrors) {
+ continue;
+ }
+#endif // PRODUCT
uri = Symbols::New(bootstrap_libraries[i].uri_);
lib = Library::LookupLibrary(uri);
ASSERT(!lib.IsNull());
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698