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

Unified Diff: runtime/vm/scavenger.cc

Issue 2984883002: Remove fields from Isolate in Product mode (Closed)
Patch Set: Address comments Created 3 years, 5 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/parser.cc ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scavenger.cc
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc
index d4a26b1b06234e74525862e582b14e49072c4a57..32d62e000906025ed067aaa6032adfd2f326b1a0 100644
--- a/runtime/vm/scavenger.cc
+++ b/runtime/vm/scavenger.cc
@@ -608,6 +608,7 @@ void Scavenger::ProcessToSpace(ScavengerVisitor* visitor) {
}
void Scavenger::UpdateMaxHeapCapacity() {
+#if !defined(PRODUCT)
if (heap_ == NULL) {
// Some unit tests.
return;
@@ -618,9 +619,11 @@ void Scavenger::UpdateMaxHeapCapacity() {
ASSERT(isolate != NULL);
isolate->GetHeapNewCapacityMaxMetric()->SetValue(to_->size_in_words() *
kWordSize);
+#endif // !defined(PRODUCT)
}
void Scavenger::UpdateMaxHeapUsage() {
+#if !defined(PRODUCT)
if (heap_ == NULL) {
// Some unit tests.
return;
@@ -630,6 +633,7 @@ void Scavenger::UpdateMaxHeapUsage() {
Isolate* isolate = heap_->isolate();
ASSERT(isolate != NULL);
isolate->GetHeapNewUsedMaxMetric()->SetValue(UsedInWords() * kWordSize);
+#endif // !defined(PRODUCT)
}
void Scavenger::EnqueueWeakProperty(RawWeakProperty* raw_weak) {
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698