mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
This updates existing callers to use the new JS::AddAssociatedMemory API and adds calls to RemoveAssociatedMemory in finalizers. The associated memory doesn't need to be exact, so some simplifiations are made, e.g. in CanvasRenderingContext2D where we don't wait for memory to be allocated but update the number of bytes when the dimensions change, and for stream blobs where the value returned by SizeOfIncludingThis changes over the lifetime of the object. Differential Revision: https://phabricator.services.mozilla.com/D28692 |
||
|---|---|---|
| .. | ||
| modules | ||
| tests | ||
| moz.build | ||
| NativeOSFileInternals.cpp | ||
| NativeOSFileInternals.h | ||
| nsINativeOSFileInternals.idl | ||
| osfile.jsm | ||