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

Unified Diff: runtime/vm/object.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/vm/flow_graph_compiler.cc ('k') | runtime/vm/parser.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 71cf46c80aa6abf0e4c7f05e21e3daf16ff94b0a..93f2818be2c00f6f948d0d9afdcc0d3d6ec9ae39 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1365,6 +1365,7 @@ RawError* Object::Init(Isolate* isolate) {
// Pre-register the mirrors library so we can place the vm class
// MirrorReference there rather than the core library.
+NOT_IN_PRODUCT(
lib = Library::LookupLibrary(Symbols::DartMirrors());
if (lib.IsNull()) {
lib = Library::NewLibraryHelper(Symbols::DartMirrors(), true);
@@ -1376,7 +1377,7 @@ RawError* Object::Init(Isolate* isolate) {
ASSERT(lib.raw() == Library::MirrorsLibrary());
cls = Class::New<MirrorReference>();
- RegisterPrivateClass(cls, Symbols::_MirrorReference(), lib);
+ RegisterPrivateClass(cls, Symbols::_MirrorReference(), lib));
// Pre-register the collection library so we can place the vm class
// LinkedHashMap there rather than the core library.
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698