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

Unified Diff: runtime/vm/scavenger.cc

Issue 1660063002: Remove many features when building 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
Index: runtime/vm/scavenger.cc
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc
index 5dc0aae609ee1ac723c0c291b762ee94ef073035..a434ea17b01e2c06654a3dd86e4633c9dd4530dd 100644
--- a/runtime/vm/scavenger.cc
+++ b/runtime/vm/scavenger.cc
@@ -546,6 +546,7 @@ void Scavenger::IterateStoreBuffers(Isolate* isolate,
void Scavenger::IterateObjectIdTable(Isolate* isolate,
ScavengerVisitor* visitor) {
+#ifndef PRODUCT
ObjectIdRing* ring = isolate->object_id_ring();
if (ring == NULL) {
// --gc_at_alloc can get us here before the ring has been initialized.
@@ -553,6 +554,7 @@ void Scavenger::IterateObjectIdTable(Isolate* isolate,
return;
}
ring->VisitPointers(visitor);
+#endif // !PRODUCT
}
@@ -834,6 +836,9 @@ void Scavenger::WriteProtect(bool read_only) {
void Scavenger::PrintToJSONObject(JSONObject* object) const {
+ if (!FLAG_support_service) {
+ return;
+ }
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
JSONObject space(object, "new");
« runtime/vm/isolate.cc ('K') | « runtime/vm/report_test.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698