зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1052626, part 1 - Outline and constify JSObject2WrappedJSMap::SizeOfIncludingThis. r=njn
This commit is contained in:
Родитель
7065703fce
Коммит
5d1b4639a7
|
@ -111,6 +111,14 @@ JSObject2WrappedJSMap::ShutdownMarker()
|
|||
}
|
||||
}
|
||||
|
||||
size_t
|
||||
JSObject2WrappedJSMap::SizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf) const
|
||||
{
|
||||
size_t n = mallocSizeOf(this);
|
||||
n += mTable.sizeOfExcludingThis(mallocSizeOf);
|
||||
return n;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
// implement Native2WrappedNativeMap...
|
||||
|
||||
|
|
|
@ -72,11 +72,7 @@ public:
|
|||
|
||||
void ShutdownMarker();
|
||||
|
||||
size_t SizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf) {
|
||||
size_t n = mallocSizeOf(this);
|
||||
n += mTable.sizeOfExcludingThis(mallocSizeOf);
|
||||
return n;
|
||||
}
|
||||
size_t SizeOfIncludingThis(mozilla::MallocSizeOf mallocSizeOf) const;
|
||||
|
||||
private:
|
||||
JSObject2WrappedJSMap() {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче