| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 3df88e300c3ad8f53028e452dc8f0a5a24976b73..f51d22560b5f0c88c9b95b832da4ac83ed7891d8 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -885,8 +885,7 @@ bool String::MakeExternal(v8::String::ExternalStringResource* resource) {
|
| self->set_resource(resource);
|
| if (is_internalized) self->Hash(); // Force regeneration of the hash value.
|
|
|
| - heap->AdjustLiveBytes(this->address(), new_size - size,
|
| - Heap::CONCURRENT_TO_SWEEPER);
|
| + heap->AdjustLiveBytes(this, new_size - size, Heap::CONCURRENT_TO_SWEEPER);
|
| return true;
|
| }
|
|
|
| @@ -946,8 +945,7 @@ bool String::MakeExternal(v8::String::ExternalOneByteStringResource* resource) {
|
| self->set_resource(resource);
|
| if (is_internalized) self->Hash(); // Force regeneration of the hash value.
|
|
|
| - heap->AdjustLiveBytes(this->address(), new_size - size,
|
| - Heap::CONCURRENT_TO_SWEEPER);
|
| + heap->AdjustLiveBytes(this, new_size - size, Heap::CONCURRENT_TO_SWEEPER);
|
| return true;
|
| }
|
|
|
| @@ -2045,7 +2043,7 @@ void JSObject::MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map) {
|
| Address address = object->address();
|
| heap->CreateFillerObjectAt(
|
| address + new_instance_size, instance_size_delta);
|
| - heap->AdjustLiveBytes(address, -instance_size_delta,
|
| + heap->AdjustLiveBytes(*object, -instance_size_delta,
|
| Heap::CONCURRENT_TO_SWEEPER);
|
| }
|
|
|
| @@ -4577,7 +4575,7 @@ void JSObject::MigrateFastToSlow(Handle<JSObject> object,
|
| Heap* heap = isolate->heap();
|
| heap->CreateFillerObjectAt(object->address() + new_instance_size,
|
| instance_size_delta);
|
| - heap->AdjustLiveBytes(object->address(), -instance_size_delta,
|
| + heap->AdjustLiveBytes(*object, -instance_size_delta,
|
| Heap::CONCURRENT_TO_SWEEPER);
|
| }
|
|
|
| @@ -9124,7 +9122,7 @@ Handle<String> SeqString::Truncate(Handle<SeqString> string, int new_length) {
|
| // that are a multiple of pointer size.
|
| heap->CreateFillerObjectAt(start_of_string + new_size, delta);
|
| }
|
| - heap->AdjustLiveBytes(start_of_string, -delta, Heap::CONCURRENT_TO_SWEEPER);
|
| + heap->AdjustLiveBytes(*string, -delta, Heap::CONCURRENT_TO_SWEEPER);
|
|
|
| // We are storing the new length using release store after creating a filler
|
| // for the left-over space to avoid races with the sweeper thread.
|
|
|