Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cb627ff527f0ae7b2aa6c8ebc70f9cc055ad5944..47e93c5d328049b399edc014f8a24cf31527b3b6 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -993,7 +993,7 @@ bool String::MakeExternal(v8::String::ExternalStringResource* resource) { |
int new_size = this->Size(); // Byte size of the external String object. |
heap->CreateFillerObjectAt(this->address() + new_size, size - new_size); |
if (Marking::IsBlack(Marking::MarkBitFrom(this))) { |
- MemoryChunk::IncrementLiveBytes(this->address(), new_size - size); |
+ MemoryChunk::IncrementLiveBytesFromMutator(this->address(), new_size - size); |
} |
return true; |
} |
@@ -1037,7 +1037,7 @@ bool String::MakeExternal(v8::String::ExternalAsciiStringResource* resource) { |
int new_size = this->Size(); // Byte size of the external String object. |
heap->CreateFillerObjectAt(this->address() + new_size, size - new_size); |
if (Marking::IsBlack(Marking::MarkBitFrom(this))) { |
- MemoryChunk::IncrementLiveBytes(this->address(), new_size - size); |
+ MemoryChunk::IncrementLiveBytesFromMutator(this->address(), new_size - size); |
} |
return true; |
} |
@@ -3460,7 +3460,8 @@ MaybeObject* JSObject::NormalizeProperties(PropertyNormalizationMode mode, |
current_heap->CreateFillerObjectAt(this->address() + new_instance_size, |
instance_size_delta); |
if (Marking::IsBlack(Marking::MarkBitFrom(this))) { |
- MemoryChunk::IncrementLiveBytes(this->address(), -instance_size_delta); |
+ MemoryChunk::IncrementLiveBytesFromMutator(this->address(), |
+ -instance_size_delta); |
} |