Changeset 236296 in webkit for trunk/Source/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Sep 20, 2018, 6:11:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.cpp
r235491 r236296 206 206 // If we resolved a string that didn't previously exist, notify the heap that we've grown. 207 207 if (m_value.impl()->hasOneRef()) 208 Heap::heap(this)->reportExtraMemoryAllocated(m_value.impl()->cost());208 vm.heap.reportExtraMemoryAllocated(m_value.impl()->cost()); 209 209 } 210 210 … … 265 265 LChar* buffer; 266 266 if (auto newImpl = StringImpl::tryCreateUninitialized(length(), buffer)) { 267 Heap::heap(this)->reportExtraMemoryAllocated(newImpl->cost());267 exec->vm().heap.reportExtraMemoryAllocated(newImpl->cost()); 268 268 m_value = WTFMove(newImpl); 269 269 } else { … … 279 279 UChar* buffer; 280 280 if (auto newImpl = StringImpl::tryCreateUninitialized(length(), buffer)) { 281 Heap::heap(this)->reportExtraMemoryAllocated(newImpl->cost());281 exec->vm().heap.reportExtraMemoryAllocated(newImpl->cost()); 282 282 m_value = WTFMove(newImpl); 283 283 } else {
Note:
See TracChangeset
for help on using the changeset viewer.