Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index ee16ec42864a8f1b1ee042ea32c672b1959d8c1f..dd455e74ae3879325db7f6d3ac1e3f6243fe8362 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -889,7 +889,7 @@ bool String::MakeExternal(v8::String::ExternalStringResource* resource) { |
// Fill the remainder of the string with dead wood. |
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))) { |
+ if (MarkCompactCollector::IsLiveBytesUpdateRequired(this)) { |
MemoryChunk::IncrementLiveBytes(this->address(), new_size - size); |
} |
return true; |
@@ -938,7 +938,7 @@ bool String::MakeExternal(v8::String::ExternalAsciiStringResource* resource) { |
// Fill the remainder of the string with dead wood. |
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))) { |
+ if (MarkCompactCollector::IsLiveBytesUpdateRequired(this)) { |
MemoryChunk::IncrementLiveBytes(this->address(), new_size - size); |
} |
@@ -3255,7 +3255,7 @@ MaybeObject* JSObject::NormalizeProperties(PropertyNormalizationMode mode, |
ASSERT(instance_size_delta >= 0); |
current_heap->CreateFillerObjectAt(this->address() + new_instance_size, |
instance_size_delta); |
- if (Marking::IsBlack(Marking::MarkBitFrom(this))) { |
+ if (MarkCompactCollector::IsLiveBytesUpdateRequired(this)) { |
MemoryChunk::IncrementLiveBytes(this->address(), -instance_size_delta); |
} |